mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-17 13:04:23 +00:00
Implement add_device() and remove_device() support for DeviceType::VfioModern and DeviceType::BlockModern in the QEMU inner hypervisor layer. For cold-plug (before VM boot): VfioDeviceConfig/VfioDeviceGroup structs are constructed from the device's resolved PCI address, IOMMU group, and bus assignment, then appended to the QEMU command line via cmdline_generator. Block devices use VirtioBlkDevice with the modern config's sector size fields and are always cold-plugged onto the command line. Signed-off-by: Alex Lyn <alex.lyn@antgroup.com> Signed-off-by: Fabiano Fidêncio <ffidencio@nvidia.com>