diff options
| author | Eric Auger <eric.auger@redhat.com> | 2023-10-19 15:45:16 +0200 |
|---|---|---|
| committer | Cédric Le Goater <clg@redhat.com> | 2023-11-03 09:20:31 +0100 |
| commit | 30d40e39bdcb50e67f7cca7bee8bf59234c4ec12 (patch) | |
| tree | fabee07059fe8d66ab287c339367ab64ad6602b3 /include/hw/virtio/virtio-iommu.h | |
| parent | 09b4c3d6a2f098e64cc25aa63f388ea943990279 (diff) | |
| download | focaccia-qemu-30d40e39bdcb50e67f7cca7bee8bf59234c4ec12.tar.gz focaccia-qemu-30d40e39bdcb50e67f7cca7bee8bf59234c4ec12.zip | |
virtio-iommu: Implement set_iova_ranges() callback
The implementation populates the array of per IOMMUDevice host reserved ranges. It is forbidden to have conflicting sets of host IOVA ranges to be applied onto the same IOMMU MR (implied by different host devices). In case the callback is called after the probe request has been issues by the driver, a warning is issued. Signed-off-by: Eric Auger <eric.auger@redhat.com> 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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio-iommu.h b/include/hw/virtio/virtio-iommu.h index 1dd11ae81a..781ebaea8f 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; + GList *host_resv_ranges; bool probe_done; } IOMMUDevice; |