]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/container: Initialize VFIOIOMMUOps under vfio_init_container()
authorCédric Le Goater <clg@redhat.com>
Tue, 19 Dec 2023 06:58:18 +0000 (07:58 +0100)
committerCédric Le Goater <clg@redhat.com>
Fri, 5 Jan 2024 20:25:20 +0000 (21:25 +0100)
commitbffe92af0e7571868d47a1d1cd2205e13054d492
treee4d26d14034f546bf9ce48174d38935fe1b18f4c
parentd3764db87531cd53849ccee9b2f72aede90ccf5b
vfio/container: Initialize VFIOIOMMUOps under vfio_init_container()

vfio_init_container() already defines the IOMMU type of the container.
Do the same for the VFIOIOMMUOps struct. This prepares ground for the
following patches that will deduce the associated VFIOIOMMUOps struct
from the IOMMU type.

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/container.c