summary refs log tree commit diff stats
path: root/include/hw/virtio/virtio-iommu.h
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2023-10-19 15:45:15 +0200
committerCédric Le Goater <clg@redhat.com>2023-11-03 09:20:31 +0100
commit09b4c3d6a2f098e64cc25aa63f388ea943990279 (patch)
treed9185268de206be3f218a60e59ab88d0cd772ae8 /include/hw/virtio/virtio-iommu.h
parentb439595a08d79120325de4684698bb7b6516aa8a (diff)
downloadfocaccia-qemu-09b4c3d6a2f098e64cc25aa63f388ea943990279.tar.gz
focaccia-qemu-09b4c3d6a2f098e64cc25aa63f388ea943990279.zip
virtio-iommu: Record whether a probe request has been issued
Add an IOMMUDevice 'probe_done' flag to record that the driver
already issued a probe request on that device.

This will be useful to double check host reserved regions aren't
notified after the probe and hence are not taken into account
by the driver.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Suggested-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: "Michael S. Tsirkin" <mst@redhat.com>
Tested-by: Yanghang Liu <yanghliu@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include/hw/virtio/virtio-iommu.h')
-rw-r--r--include/hw/virtio/virtio-iommu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-iommu.h b/include/hw/virtio/virtio-iommu.h
index 70b8ace34d..1dd11ae81a 100644
--- a/include/hw/virtio/virtio-iommu.h
+++ b/include/hw/virtio/virtio-iommu.h
@@ -40,6 +40,7 @@ typedef struct IOMMUDevice {
     MemoryRegion root;          /* The root container of the device */
     MemoryRegion bypass_mr;     /* The alias of shared memory MR */
     GList *resv_regions;
+    bool probe_done;
 } IOMMUDevice;
 
 typedef struct IOMMUPciBus {