mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
committed by
Cédric Le Goater
parent
5947f69b63
commit
1f778031ec
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user