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:
Philipp Schuster
2026-05-11 16:10:29 +02:00
committed by Rob Bradford
parent 04bc6b3ccc
commit 36a3369802
5 changed files with 3 additions and 18 deletions
+1 -5
View File
@@ -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,
}
}
}