mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Introduce option --platform iommufd=on|off
This option allows user to configure VFIO device pass-through with iommufd (e.g. vfio cdev mode) or not (e.g. vfio legacy mode). Signed-off-by: Bo Chen <bchen@crusoe.ai>
This commit is contained in:
@@ -133,6 +133,8 @@ pub struct PlatformConfig {
|
||||
#[cfg(feature = "sev_snp")]
|
||||
#[serde(default)]
|
||||
pub sev_snp: bool,
|
||||
#[serde(default)]
|
||||
pub iommufd: bool,
|
||||
}
|
||||
|
||||
pub const DEFAULT_PCI_SEGMENT_APERTURE_WEIGHT: u32 = 1;
|
||||
|
||||
Reference in New Issue
Block a user