[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 07/24] virtio-pci: support queue enable
From: |
Kangjie Xu |
Subject: |
[PATCH v2 07/24] virtio-pci: support queue enable |
Date: |
Tue, 16 Aug 2022 09:06:19 +0800 |
PCI devices support vq enable.
Based on this function, the driver can re-enable the virtqueue after the
virtqueue is reset.
Signed-off-by: Kangjie Xu <kangjie.xu@linux.alibaba.com>
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
---
hw/virtio/virtio-pci.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c
index ec8e92052f..3d560e45ad 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -1335,6 +1335,7 @@ static void virtio_pci_common_write(void *opaque, hwaddr
addr,
proxy->vqs[vdev->queue_sel].avail[0],
((uint64_t)proxy->vqs[vdev->queue_sel].used[1]) << 32 |
proxy->vqs[vdev->queue_sel].used[0]);
+ virtio_queue_enable(vdev, vdev->queue_sel);
proxy->vqs[vdev->queue_sel].enabled = 1;
proxy->vqs[vdev->queue_sel].reset = 0;
} else {
--
2.32.0
- [PATCH 00/24] Support VIRTIO_F_RING_RESET for virtio-net, vhost-user, vhost-kernel in virtio pci-modern, Kangjie Xu, 2022/08/15
- [PATCH v2 03/24] virtio: introduce virtio_queue_reset(), Kangjie Xu, 2022/08/15
- [PATCH v2 07/24] virtio-pci: support queue enable,
Kangjie Xu <=
- Re: [PATCH v2 07/24] virtio-pci: support queue enable, Jason Wang, 2022/08/23
- Re: [PATCH v2 07/24] virtio-pci: support queue enable, Kangjie Xu, 2022/08/23
- Re: [PATCH v2 07/24] virtio-pci: support queue enable, Jason Wang, 2022/08/24
- Re: [PATCH v2 07/24] virtio-pci: support queue enable, Kangjie Xu, 2022/08/24
- Re: [PATCH v2 07/24] virtio-pci: support queue enable, Jason Wang, 2022/08/24
- Re: [PATCH v2 07/24] virtio-pci: support queue enable, Kangjie Xu, 2022/08/24
[PATCH v2 04/24] virtio: introduce virtio_queue_enable(), Kangjie Xu, 2022/08/15
[PATCH v2 09/24] vhost: introduce vhost_dev_virtqueue_stop(), Kangjie Xu, 2022/08/15