summary refs log tree commit diff stats
path: root/hw/core/cpu-common.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2023-12-19 07:58:22 +0100
committerCédric Le Goater <clg@redhat.com>2024-01-05 21:25:20 +0100
commitf221f641a2fe69c2ca3857759551470664b0bec8 (patch)
tree83780d991ce356d72a825b6a1eae4f30b2053dab /hw/core/cpu-common.c
parent61d893f2cdb34a2b0255f9b5fbba6b49b94ff730 (diff)
downloadfocaccia-qemu-f221f641a2fe69c2ca3857759551470664b0bec8.tar.gz
focaccia-qemu-f221f641a2fe69c2ca3857759551470664b0bec8.zip
vfio/spapr: Introduce a sPAPR VFIOIOMMU QOM interface
Move vfio_spapr_container_setup() to a VFIOIOMMUClass::setup handler
and convert the sPAPR VFIOIOMMUOps struct to a QOM interface. The
sPAPR QOM interface inherits from the legacy QOM interface because
because both have the same basic needs. The sPAPR interface is then
extended with the handlers specific to the sPAPR IOMMU.

This allows reuse and provides better abstraction of the backends. It
will be useful to avoid compiling the sPAPR IOMMU backend on targets
not supporting it.

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>
Diffstat (limited to 'hw/core/cpu-common.c')
0 files changed, 0 insertions, 0 deletions