diff options
| author | David Gibson | 2015-09-30 04:13:51 +0200 |
|---|---|---|
| committer | Alex Williamson | 2015-10-05 20:36:08 +0200 |
| commit | ee0bf0e59bb1c07c0196142f2ecfd88f7f8b194e (patch) | |
| tree | 5b15e491f3990044cda1654e9df2d27eb3908a65 /include/exec | |
| parent | hw/vfio/platform: do not set resamplefd for edge-sensitive IRQS (diff) | |
| download | qemu-ee0bf0e59bb1c07c0196142f2ecfd88f7f8b194e.tar.gz qemu-ee0bf0e59bb1c07c0196142f2ecfd88f7f8b194e.tar.xz qemu-ee0bf0e59bb1c07c0196142f2ecfd88f7f8b194e.zip | |
vfio: Remove unneeded union from VFIOContainer
Currently the VFIOContainer iommu_data field contains a union with
different information for different host iommu types. However:
* It only actually contains information for the x86-like "Type1" iommu
* Because we have a common listener the Type1 fields are actually used
on all IOMMU types, including the SPAPR TCE type as well
In fact we now have a general structure for the listener which is unlikely
to ever need per-iommu-type information, so this patch removes the union.
In a similar way we can unify the setup of the vfio memory listener in
vfio_connect_container() that is currently split across a switch on iommu
type, but is effectively the same in both cases.
The iommu_data.release pointer was only needed as a cleanup function
which would handle potentially different data in the union. With the
union gone, it too can be removed.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
