vfio/container: Introduce a VFIOIOMMU legacy QOM interface
commit9812feefab3a4ff95a6cfd73aecb120b406bc98c
authorCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 06:58:20 +0000 (19 07:58 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 5 Jan 2024 20:25:20 +0000 (5 21:25 +0100)
tree749732c3ad6df727787ea91c604ef80a94a828cd
parentfdaa774e67435a328c0e28006c4d749f2198294a
vfio/container: Introduce a VFIOIOMMU legacy QOM interface

Convert the legacy VFIOIOMMUOps struct to the new VFIOIOMMU QOM
interface. The set of of operations for this backend can be referenced
with a literal typename instead of a C struct. This will simplify
support of multiple backends.

Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Tested-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
hw/vfio/container.c
include/hw/vfio/vfio-common.h
include/hw/vfio/vfio-container-base.h