diff options
author | Cédric Le Goater <clg@redhat.com> | 2024-06-17 08:34:02 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2024-06-24 23:15:31 +0200 |
commit | 9550fdfd29f52d548d99aed2b1a002308ad6175a (patch) | |
tree | 8a7be0e481333a6dae7eff85fca27920538af3e9 /hw/vfio/spapr.c | |
parent | 58f5c13260c2bf8fe158d0e176d1595858157946 (diff) |
vfio/container: Discover IOMMU type before creating the container
Since the QEMU struct type representing the VFIO container is deduced
from the IOMMU type exposed by the host, this type should be well
defined *before* creating the container struct. This will be necessary
to instantiate a QOM object of the correct type in future changes.
Rework vfio_set_iommu() to extract the part doing the container
initialization and move it under vfio_create_container().
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/spapr.c')
0 files changed, 0 insertions, 0 deletions