qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 15/40] vdpa: add svq_switching and flush_map to header


From: Si-Wei Liu
Subject: [PATCH 15/40] vdpa: add svq_switching and flush_map to header
Date: Thu, 7 Dec 2023 09:39:28 -0800

Will be used in next patches.

Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
---
 include/hw/virtio/vhost-vdpa.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/hw/virtio/vhost-vdpa.h b/include/hw/virtio/vhost-vdpa.h
index 7b8d3bf..0fe0f60 100644
--- a/include/hw/virtio/vhost-vdpa.h
+++ b/include/hw/virtio/vhost-vdpa.h
@@ -72,6 +72,12 @@ typedef struct vhost_vdpa_shared {
     bool shadow_data;
 
     unsigned refcnt;
+
+    /* SVQ switching is in progress? 1: turn on SVQ, -1: turn off SVQ */
+    int svq_switching;
+
+    /* Flush mappings on reset due to shared address space */
+    bool flush_map;
 } VhostVDPAShared;
 
 typedef struct vhost_vdpa {
-- 
1.8.3.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]