[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v4 4/5] virtio: Make sure we get correct state of de
From: |
elohimes |
Subject: |
[Qemu-devel] [PATCH v4 4/5] virtio: Make sure we get correct state of device on handle_aio_output() |
Date: |
Wed, 26 Jun 2019 10:31:29 +0800 |
From: Xie Yongji <address@hidden>
We should set the flags: "start_on_kick" and "started" after we call
the kick functions (handle_aio_output() and handle_output()).
Signed-off-by: Xie Yongji <address@hidden>
---
hw/virtio/virtio.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index 5fd25d98a9..e098fc8ef0 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
@@ -1571,10 +1571,10 @@ void virtio_queue_notify(VirtIODevice *vdev, int n)
event_notifier_set(&vq->host_notifier);
} else if (vq->handle_output) {
vq->handle_output(vdev, vq);
- }
- if (unlikely(vdev->start_on_kick)) {
- virtio_set_started(vdev, true);
+ if (unlikely(vdev->start_on_kick)) {
+ virtio_set_started(vdev, true);
+ }
}
}
--
2.17.1
- [Qemu-devel] [PATCH v4 0/5] virtio: fix some issues of "started" and "start_on_kick" flag, elohimes, 2019/06/25
- [Qemu-devel] [PATCH v4 2/5] virtio: Set "start_on_kick" for legacy devices, elohimes, 2019/06/25
- [Qemu-devel] [PATCH v4 3/5] virtio: Set "start_on_kick" on virtio_set_features(), elohimes, 2019/06/25
- [Qemu-devel] [PATCH v4 1/5] virtio: add "use-started" property, elohimes, 2019/06/25
- [Qemu-devel] [PATCH v4 5/5] virtio: Don't change "started" flag on virtio_vmstate_change(), elohimes, 2019/06/25
- [Qemu-devel] [PATCH v4 4/5] virtio: Make sure we get correct state of device on handle_aio_output(),
elohimes <=
- Re: [Qemu-devel] [PATCH v4 0/5] virtio: fix some issues of "started" and "start_on_kick" flag, Laurent Vivier, 2019/06/26