[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 5/7] vhost-user-blk: add VIRTIO_F_RING_PACKED feature bit
From: |
Stefan Hajnoczi |
Subject: |
[PATCH v2 5/7] vhost-user-blk: add VIRTIO_F_RING_PACKED feature bit |
Date: |
Tue, 9 Jun 2020 18:02:16 +0100 |
Vhost devices have a list of feature bits that the device backend is
allowed to control. The VIRTIO_F_RING_PACKED feature is a feature that
must be negotiated through all the way to the device backend. Add it so
the device backend can declare whether or not it supports the packed
ring layout.
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
---
hw/block/vhost-user-blk.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/block/vhost-user-blk.c b/hw/block/vhost-user-blk.c
index 9d8c0b3909..10e114a19a 100644
--- a/hw/block/vhost-user-blk.c
+++ b/hw/block/vhost-user-blk.c
@@ -44,6 +44,7 @@ static const int user_feature_bits[] = {
VIRTIO_BLK_F_DISCARD,
VIRTIO_BLK_F_WRITE_ZEROES,
VIRTIO_F_VERSION_1,
+ VIRTIO_F_RING_PACKED,
VIRTIO_RING_F_INDIRECT_DESC,
VIRTIO_RING_F_EVENT_IDX,
VIRTIO_F_NOTIFY_ON_EMPTY,
--
2.26.2
- [PATCH v2 3/7] docs: document non-net VHOST_USER_GET_FEATURES behavior, (continued)
- [PATCH v2 3/7] docs: document non-net VHOST_USER_GET_FEATURES behavior, Stefan Hajnoczi, 2020/06/09
- [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Stefan Hajnoczi, 2020/06/09
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/09
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Jason Wang, 2020/06/09
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/10
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Jason Wang, 2020/06/10
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/10
- Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Jason Wang, 2020/06/10
Re: [PATCH v2 4/7] vhost: involve device backends in feature negotiation, Michael S. Tsirkin, 2020/06/10
[PATCH v2 5/7] vhost-user-blk: add VIRTIO_F_RING_PACKED feature bit,
Stefan Hajnoczi <=
[PATCH v2 7/7] virtio: enable VIRTIO_F_RING_PACKED for all devices, Stefan Hajnoczi, 2020/06/09
[PATCH v2 6/7] vhost-scsi: add VIRTIO_F_VERSION_1 and VIRTIO_F_RING_PACKED, Stefan Hajnoczi, 2020/06/09
Re: [PATCH v2 0/7] virtio: enable VIRTIO_F_RING_PACKED for all devices, Michael S. Tsirkin, 2020/06/10