[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 12/12] virtio-scsi-dataplane: Add "device IO"
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v3 12/12] virtio-scsi-dataplane: Add "device IO" op blocker listener |
Date: |
Fri, 15 May 2015 08:50:17 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
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?
Paolo
- [Qemu-devel] [PATCH v3 03/12] block-backend: Add blk_op_blocker_add_notifier, (continued)
- [Qemu-devel] [PATCH v3 03/12] block-backend: Add blk_op_blocker_add_notifier, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 06/12] nbd-server: Clear "can_read" when "device io" blocker is set, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 05/12] virtio-blk: Don't handle output when there is "device IO" op blocker, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 08/12] blockdev: Block device IO during external snapshot transaction, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 09/12] blockdev: Block device IO during drive-backup transaction, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 07/12] blockdev: Block device IO during internal snapshot transaction, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 11/12] block: Block "device IO" during bdrv_drain and bdrv_drain_all, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 10/12] blockdev: Block device IO during blockdev-backup transaction, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 04/12] virtio-blk: Move complete_request to 'ops' structure, Fam Zheng, 2015/05/15
- [Qemu-devel] [PATCH v3 12/12] virtio-scsi-dataplane: Add "device IO" op blocker listener, Fam Zheng, 2015/05/15
- Re: [Qemu-devel] [PATCH v3 12/12] virtio-scsi-dataplane: Add "device IO" op blocker listener,
Paolo Bonzini <=