mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-04-12 23:04:33 +00:00
runtime-rs: Add QEMU VFIO command-line parameter structs
Add QEMU command-line parameter types for VFIO device cold-plug: - ObjectIommufd: /dev/iommu object for iommufd-backed passthrough - PCIeVfioDevice: vfio-pci device on a PCIe root port or switch port, supporting both legacy VFIO group and iommufd cdev backends - FWCfgDevice: firmware config device for fw_cfg blob injection - VfioDeviceBase/VfioDeviceConfig/VfioDeviceGroup: high-level wrappers that compose the above into complete QEMU argument sets, resolving IOMMU groups, device nodes, and per-device fw_cfg entries Refactor existing cmdline structs (BalloonDevice, VirtioNetDevice, VirtioBlkDevice, etc.) to use a shared devices_to_params() helper and align the ToQemuParams implementations. Signed-off-by: Alex Lyn <alex.lyn@antgroup.com> Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>
This commit is contained in:
committed by
Fabiano Fidêncio
parent
2cd94ec92e
commit
2a104dbada