mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: drop misleading iommu option from serial config
`--serial` still accepted `iommu=on|off` from the shared serial/console configuration shape, even though only virtio-console has a meaningful IOMMU connection. Cloud Hypervisor wires virtio-iommu support through DMA-capable virtio/VFIO PCI endpoints. The serial devices are legacy UARTs accessed through PIO or MMIO registers, so exposing an IOMMU option there is misleading. On-behalf-of: Philipp Schuster@sap.com Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de>
This commit is contained in:
committed by
Rob Bradford
parent
04bc6b3ccc
commit
36a3369802
@@ -582,13 +582,10 @@ impl ApplyLandlock for CommonConsoleConfig {
|
||||
pub struct SerialConfig {
|
||||
#[serde(flatten)]
|
||||
pub common: CommonConsoleConfig,
|
||||
#[serde(default, skip_serializing_if = "<&bool as std::ops::Not>::not")]
|
||||
pub iommu: bool,
|
||||
}
|
||||
|
||||
impl SerialConfig {
|
||||
pub const SYNTAX: &str =
|
||||
"Control serial port: \"off|null|pty|tty|file=<path>|socket=<path>,iommu=on|off\"";
|
||||
pub const SYNTAX: &str = "Control serial port: \"off|null|pty|tty|file=<path>|socket=<path>\"";
|
||||
}
|
||||
|
||||
impl Default for SerialConfig {
|
||||
@@ -599,7 +596,6 @@ impl Default for SerialConfig {
|
||||
mode: ConsoleOutputMode::Null,
|
||||
socket: None,
|
||||
},
|
||||
iommu: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user