mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
If a device is attached to the iommu individually (not behind an iommu backed segment) then we shouldn't allow its removal as the static VIOT ACPI table establishes which devices (or whole segments) are behind the IOMMU. After a removal that would be incorrect. An alternative that was considered was to "block" the BDF from being used for another PCI device that was hotplugged unless it was also IOMMU attached that however feels unncessary complex when the primary purpose of the vIOMMU backing is for nested device testing. Signed-off-by: Rob Bradford <rbradford@meta.com>