[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/7] vdpa: Offer VIRTIO_NET_F_GUEST_ANNOUNCE feature if SVQ is en
From: |
Eugenio Pérez |
Subject: |
[PATCH 7/7] vdpa: Offer VIRTIO_NET_F_GUEST_ANNOUNCE feature if SVQ is enabled |
Date: |
Thu, 20 Oct 2022 12:34:29 +0200 |
So qemu emulates it in case the device does not support it.
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 5fda405a66..64442e8455 100644
--- a/net/vhost-vdpa.c
+++ b/net/vhost-vdpa.c
@@ -566,6 +566,9 @@ static NetClientState *net_vhost_vdpa_init(NetClientState
*peer,
/* VIRTIO_NET_F_STATUS is mandatory for _F_GUEST_ANNOUNCE. */
s->vhost_vdpa.added_features |= BIT_ULL(VIRTIO_NET_F_STATUS);
+
+ /* We can emulate guest announce shadowing CVQ */
+ s->vhost_vdpa.added_features |= BIT_ULL(VIRTIO_NET_F_GUEST_ANNOUNCE);
}
if (!is_datapath) {
s->cvq_cmd_out_buffer = qemu_memalign(qemu_real_host_page_size(),
--
2.31.1
- [PATCH 0/7] Guest announce feature emulation using Shadow VirtQueue, Eugenio Pérez, 2022/10/20
- [PATCH 2/7] virtio_net: Modify virtio_net_get_config to early return, Eugenio Pérez, 2022/10/20
- [PATCH 5/7] vdpa: handle VIRTIO_NET_CTRL_ANNOUNCE in vhost_vdpa_net_handle_ctrl_avail, Eugenio Pérez, 2022/10/20
- [PATCH 4/7] vdpa: Expose VIRTIO_NET_F_STATUS unconditionally, Eugenio Pérez, 2022/10/20
- [PATCH 1/7] vdpa: Save emulated features list in vhost_vdpa, Eugenio Pérez, 2022/10/20
- [PATCH 3/7] virtio_net: Handle _F_STATUS emulation in virtio_net_get_config, Eugenio Pérez, 2022/10/20
- [PATCH 6/7] virtio_net: copy VIRTIO_NET_S_ANNOUNCE if device model has it, Eugenio Pérez, 2022/10/20
- [PATCH 7/7] vdpa: Offer VIRTIO_NET_F_GUEST_ANNOUNCE feature if SVQ is enabled,
Eugenio Pérez <=
- Re: [PATCH 0/7] Guest announce feature emulation using Shadow VirtQueue, Michael S. Tsirkin, 2022/10/26