summary refs log tree commit diff stats
path: root/hw/ppc
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.caveayland@nutanix.com>2025-07-15 10:25:45 +0100
committerCédric Le Goater <clg@redhat.com>2025-09-08 16:46:31 +0200
commit1f778031ec64cab0e79ab22f1313de59b81de3e5 (patch)
tree2b16457cb494a75f25738e6860cdd0a1d45a8bea /hw/ppc
parent5947f69b63639b54f02db1727c559f8aae32d849 (diff)
downloadfocaccia-qemu-1f778031ec64cab0e79ab22f1313de59b81de3e5.tar.gz
focaccia-qemu-1f778031ec64cab0e79ab22f1313de59b81de3e5.zip
ppc/spapr_pci_vfio.c: use QOM casts where appropriate
Use a QOM cast to convert to VFIOContainer instead of accessing bcontainer
directly.

Signed-off-by: Mark Cave-Ayland <mark.caveayland@nutanix.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Link: https://lore.kernel.org/qemu-devel/20250715093110.107317-6-mark.caveayland@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/ppc')
-rw-r--r--hw/ppc/spapr_pci_vfio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/spapr_pci_vfio.c b/hw/ppc/spapr_pci_vfio.c
index e318d0d912..7e1c71ef59 100644
--- a/hw/ppc/spapr_pci_vfio.c
+++ b/hw/ppc/spapr_pci_vfio.c
@@ -106,7 +106,7 @@ static VFIOContainer *vfio_eeh_as_container(AddressSpace *as)
 
 out:
     vfio_address_space_put(space);
-    return container_of(bcontainer, VFIOContainer, bcontainer);
+    return VFIO_IOMMU_LEGACY(bcontainer);
 }
 
 static bool vfio_eeh_as_ok(AddressSpace *as)