vfio/common: Store the parent container in VFIODevice
commit0bddd88027679d3c34b7c754a13c7af002adbd99
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Mon, 9 Oct 2023 09:09:15 +0000 (9 11:09 +0200)
committerCédric Le Goater <clg@redhat.com>
Wed, 18 Oct 2023 08:10:49 +0000 (18 10:10 +0200)
treee87a064e1e9a085e21fb524a730c898928f36b4c
parent7103ef7e765dfdf84ba7042f46d3cc0da682cb89
vfio/common: Store the parent container in VFIODevice

let's store the parent contaienr within the VFIODevice.
This simplifies the logic in vfio_viommu_preset() and
brings the benefice to hide the group specificity which
is useful for IOMMUFD migration.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/common.c
include/hw/vfio/vfio-common.h