qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 1/1 V6] VMWare PVSCSI paravirtual device impleme


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 1/1 V6] VMWare PVSCSI paravirtual device implementation
Date: Thu, 18 Apr 2013 12:54:37 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4

Il 18/04/2013 11:38, Dmitry Fleytman ha scritto:
> 
>     > +static void
>     > +pvscsi_free_queue(PVSCSIRequestList *req_list)
> 
>     This shouldn't be needed.
> 
> 
> 
> Doesn't one need to clear completion queue on reset command arrival from
> driver?
> 

It should happen in qbus_reset_all.  The scsi-disk device will cancel
pending requests, and these will be moved from the pending_queue to the
completion_queue.  I think you can call pvscsi_process_completion_queue
instead of pvscsi_free_queue.

Paolo

> 
>     > +{
>     > +    PVSCSIRequest *pvscsi_req;
>     > +
>     > +    while (!QTAILQ_EMPTY(req_list)) {
>     > +        pvscsi_req = QTAILQ_FIRST(req_list);
>     > +        QTAILQ_REMOVE(req_list, pvscsi_req, next);
>     > +        g_free(pvscsi_req);
>     > +    }
>     > +}
>     > +




reply via email to

[Prev in Thread] Current Thread [Next in Thread]