From dde28dc38aac8ce50e26c9017e208b854a2f8d8e Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 3 Apr 2026 12:40:55 -0700 Subject: [PATCH] vmm: config: Remove unused error variant The IommuNotSupportedOnSegment variant is no longer needed as the common PciDeviceCommonConfig::validate() handles this case with the OnIommuSegment variant along with more use of the IommuNotSupported error variant. Signed-off-by: Rob Bradford --- vmm/src/config.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/vmm/src/config.rs b/vmm/src/config.rs index 4b7e4a8ff..d80e389f5 100644 --- a/vmm/src/config.rs +++ b/vmm/src/config.rs @@ -320,11 +320,6 @@ pub enum ValidationError { /// GPUDirect clique requires P2P DMA #[error("Device with x_nv_gpudirect_clique requires vfio_p2p_dma=on")] GpuDirectCliqueRequiresP2pDma, - // On a IOMMU segment but IOMMU not supported - #[error( - "Device is on an IOMMU PCI segment ({0}) but does not support being placed behind IOMMU" - )] - IommuNotSupportedOnSegment(u16), // Identifier is not unique #[error("Identifier {0} is not unique")] IdentifierNotUnique(String),