[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 07/15] virtio-pci: support queue enable
From: |
Kangjie Xu |
Subject: |
[PATCH v4 07/15] virtio-pci: support queue enable |
Date: |
Mon, 12 Sep 2022 01:22:03 +0800 |
PCI devices support device specific 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>
Acked-by: Jason Wang <jasowang@redhat.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 79b9e641dd..a53b5d9f1e 100644
--- a/hw/virtio/virtio-pci.c
+++ b/hw/virtio/virtio-pci.c
@@ -1342,6 +1342,7 @@ static void virtio_pci_common_write(void *opaque, hwaddr
addr,
proxy->vqs[vdev->queue_sel].used[0]);
proxy->vqs[vdev->queue_sel].enabled = 1;
proxy->vqs[vdev->queue_sel].reset = 0;
+ virtio_queue_enable(vdev, vdev->queue_sel);
} else {
virtio_error(vdev, "wrong value for queue_enable %"PRIx64, val);
}
--
2.32.0
- [PATCH v4 09/15] vhost: expose vhost_virtqueue_stop(), (continued)
- [PATCH v4 09/15] vhost: expose vhost_virtqueue_stop(), Kangjie Xu, 2022/09/11
- [PATCH v4 06/15] virtio-pci: support queue reset, Kangjie Xu, 2022/09/11
- [PATCH v4 15/15] vhost: vhost-kernel: enable vq reset feature, Kangjie Xu, 2022/09/11
- [PATCH v4 08/15] vhost: expose vhost_virtqueue_start(), Kangjie Xu, 2022/09/11
- [PATCH v4 05/15] virtio: core: vq reset feature negotation support, Kangjie Xu, 2022/09/11
- [PATCH v4 11/15] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_restart(), Kangjie Xu, 2022/09/11
- [PATCH v4 07/15] virtio-pci: support queue enable,
Kangjie Xu <=
- [PATCH v4 03/15] virtio: introduce virtio_queue_reset(), Kangjie Xu, 2022/09/11
- [PATCH v4 13/15] virtio-net: support queue reset, Kangjie Xu, 2022/09/11
- [PATCH v4 12/15] virtio-net: introduce flush_or_purge_queued_packets(), Kangjie Xu, 2022/09/11
- [PATCH v4 14/15] virtio-net: support queue_enable, Kangjie Xu, 2022/09/11