qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH v3 12/12] virtio-scsi-dataplane: Add "device IO"


From: Fam Zheng
Subject: Re: [Qemu-block] [PATCH v3 12/12] virtio-scsi-dataplane: Add "device IO" op blocker listener
Date: Fri, 15 May 2015 15:57:27 +0800
User-agent: Mutt/1.5.23 (2014-03-12)

On Fri, 05/15 09:26, Paolo Bonzini wrote:
> 
> 
> On 15/05/2015 09:03, Fam Zheng wrote:
> > On Fri, 05/15 08:50, Paolo Bonzini wrote:
> >>
> >>
> >> On 15/05/2015 08:04, Fam Zheng wrote:
> >>> @@ -111,6 +111,10 @@ static void 
> >>> virtio_scsi_iothread_handle_ctrl(EventNotifier *notifier)
> >>>      VirtIOSCSI *s = VIRTIO_SCSI(vring->parent);
> >>>      VirtIOSCSIReq *req;
> >>>  
> >>> +    if (s->pause_counter) {
> >>> +        virtio_scsi_stop_ioeventfd(s);
> >>> +        return;
> >>> +    }
> >>>      event_notifier_test_and_clear(notifier);
> >>>      while ((req = virtio_scsi_pop_req_vring(s, vring))) {
> >>>          virtio_scsi_handle_ctrl_req(s, req);
> >>> @@ -124,6 +128,10 @@ static void 
> >>> virtio_scsi_iothread_handle_event(EventNotifier *notifier)
> >>>      VirtIOSCSI *s = vring->parent;
> >>>      VirtIODevice *vdev = VIRTIO_DEVICE(s);
> >>>  
> >>> +    if (s->pause_counter) {
> >>> +        virtio_scsi_stop_ioeventfd(s);
> >>> +        return;
> >>> +    }
> >>>      event_notifier_test_and_clear(notifier);
> >>>  
> >>>      if (!(vdev->status & VIRTIO_CONFIG_S_DRIVER_OK)) {
> >>
> >> Why are these needed?
> > 
> > Not strictly. I think it's something like an "assert(!s->pause_counter)" but
> > said gently.
> 
> Why be gentle? :)

I guess because I want to be a gentleman.. :)

But since being gentle to these two won't make me a fortune to become a
gentlemen, let's just assert!

Fam



reply via email to

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