[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH v2 4/8] vdpa: Expose VIRTIO_NET_F_STATUS unconditionally
From: |
Eugenio Pérez |
Subject: |
[RFC PATCH v2 4/8] vdpa: Expose VIRTIO_NET_F_STATUS unconditionally |
Date: |
Wed, 19 Oct 2022 14:52:06 +0200 |
Now that qemu can handle and emulate it if the vdpa backend does not
support it we can offer it always.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
---
net/vhost-vdpa.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/net/vhost-vdpa.c b/net/vhost-vdpa.c
index 3803452800..fca21d5b79 100644
--- a/net/vhost-vdpa.c
+++ b/net/vhost-vdpa.c
@@ -602,6 +602,9 @@ static NetClientState *net_vhost_vdpa_init(NetClientState
*peer,
if (svq) {
/* Add SVQ logging capabilities */
s->vhost_vdpa.added_features |= BIT_ULL(VHOST_F_LOG_ALL);
+
+ /* VIRTIO_NET_F_STATUS is mandatory for _F_GUEST_ANNOUNCE. */
+ s->vhost_vdpa.added_features |= BIT_ULL(VIRTIO_NET_F_STATUS);
}
if (!is_datapath) {
s->cvq_cmd_out_buffer = qemu_memalign(qemu_real_host_page_size(),
--
2.31.1
- Re: [RFC PATCH v2 5/8] vdpa: Remove shadow CVQ command check, (continued)
[RFC PATCH v2 4/8] vdpa: Expose VIRTIO_NET_F_STATUS unconditionally,
Eugenio Pérez <=
Re: [RFC PATCH v2 0/8] Guest announce feature emulation using Shadow VirtQueue, Jason Wang, 2022/10/20