virtio-iommu: Implement set|unset]_iommu_device() callbacks
authorEric Auger <eric.auger@redhat.com>
Fri, 14 Jun 2024 09:52:52 +0000 (11:52 +0200)
committerCédric Le Goater <clg@redhat.com>
Mon, 24 Jun 2024 21:15:30 +0000 (23:15 +0200)
commit817ef10da23cd9a6ee61c8f31f55b845c7a74760
treee570aba87acd3c5be4a8ac2016731e843c25e436
parentdc169694cad4b4c4028c755ec44ebb7565bd7461
virtio-iommu: Implement set|unset]_iommu_device() callbacks

Implement PCIIOMMUOPs [set|unset]_iommu_device() callbacks.
In set(), the HostIOMMUDevice handle is stored in a hash
table indexed by PCI BDF. The object will allow to retrieve
information related to the physical IOMMU.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-iommu.c
include/hw/virtio/virtio-iommu.h