[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/13] vdpa: Negotiate _F_SUSPEND feature
From: |
Eugenio Pérez |
Subject: |
[PATCH v2 02/13] vdpa: Negotiate _F_SUSPEND feature |
Date: |
Wed, 8 Feb 2023 10:42:42 +0100 |
This is needed for qemu to know it can suspend the device to retrieve
its status and enable SVQ with it, so all the process is transparent to
the guest.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
---
hw/virtio/vhost-vdpa.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/virtio/vhost-vdpa.c b/hw/virtio/vhost-vdpa.c
index 542e003101..2e79fbe4b2 100644
--- a/hw/virtio/vhost-vdpa.c
+++ b/hw/virtio/vhost-vdpa.c
@@ -659,7 +659,8 @@ static int vhost_vdpa_set_backend_cap(struct vhost_dev *dev)
uint64_t features;
uint64_t f = 0x1ULL << VHOST_BACKEND_F_IOTLB_MSG_V2 |
0x1ULL << VHOST_BACKEND_F_IOTLB_BATCH |
- 0x1ULL << VHOST_BACKEND_F_IOTLB_ASID;
+ 0x1ULL << VHOST_BACKEND_F_IOTLB_ASID |
+ 0x1ULL << VHOST_BACKEND_F_SUSPEND;
int r;
if (vhost_vdpa_call(dev, VHOST_GET_BACKEND_FEATURES, &features)) {
--
2.31.1
- [PATCH v2 00/13] Dynamycally switch to vhost shadow virtqueues at vdpa net migration, Eugenio Pérez, 2023/02/08
- [PATCH v2 02/13] vdpa: Negotiate _F_SUSPEND feature,
Eugenio Pérez <=
- [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Eugenio Pérez, 2023/02/08
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Si-Wei Liu, 2023/02/13
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Eugenio Perez Martin, 2023/02/13
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Si-Wei Liu, 2023/02/13
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Eugenio Perez Martin, 2023/02/14
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Si-Wei Liu, 2023/02/15
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Eugenio Perez Martin, 2023/02/16
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Si-Wei Liu, 2023/02/17
- Re: [PATCH v2 01/13] vdpa net: move iova tree creation from init to start, Eugenio Perez Martin, 2023/02/17
[PATCH v2 05/13] vdpa: rewind at get_base, not set_base, Eugenio Pérez, 2023/02/08