summaryrefslogtreecommitdiffstats
path: root/include/hw
diff options
context:
space:
mode:
authorJason Wang2021-10-20 06:55:52 +0200
committerMichael S. Tsirkin2021-10-20 10:44:05 +0200
commit4d191cfdc7de958d06f821173f721c56bc131620 (patch)
tree061b8a46412d24f766357827d2732452327cb239 /include/hw
parentvhost-vdpa: open device fd in net_init_vhost_vdpa() (diff)
downloadqemu-4d191cfdc7de958d06f821173f721c56bc131620.tar.gz
qemu-4d191cfdc7de958d06f821173f721c56bc131620.tar.xz
qemu-4d191cfdc7de958d06f821173f721c56bc131620.zip
vhost-vdpa: classify one time request
Vhost-vdpa uses one device multiqueue queue (pairs) model. So we need to classify the one time request (e.g SET_OWNER) and make sure those request were only called once per device. This is used for multiqueue support. Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20211020045600.16082-3-jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw')
-rw-r--r--include/hw/virtio/vhost-vdpa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/vhost-vdpa.h b/include/hw/virtio/vhost-vdpa.h
index c288cf7ecb..3ce79a646d 100644
--- a/include/hw/virtio/vhost-vdpa.h
+++ b/include/hw/virtio/vhost-vdpa.h
@@ -22,6 +22,7 @@ typedef struct VhostVDPAHostNotifier {
typedef struct vhost_vdpa {
int device_fd;
+ int index;
uint32_t msg_type;
bool iotlb_batch_begin_sent;
MemoryListener listener;