Merge pull request #9642 from gkurz/drop-unused-knobs-qemu-rs

runtime-rs: Drop some useless QEMU arguments
This commit is contained in:
Alex Lyn
2024-05-22 16:13:14 +08:00
committed by GitHub

View File

@@ -363,10 +363,6 @@ struct Knobs {
nodefaults: bool,
nographic: bool,
no_reboot: bool,
no_shutdown: bool,
daemonize: bool,
stopped: bool,
vga: String,
}
@@ -377,9 +373,6 @@ impl Knobs {
nodefaults: true,
nographic: true,
no_reboot: true,
no_shutdown: false,
daemonize: false,
stopped: false,
vga: "none".to_owned(),
}
}
@@ -403,15 +396,6 @@ impl ToQemuParams for Knobs {
if self.no_reboot {
result.push("-no-reboot".to_owned());
}
if self.no_shutdown {
result.push("-no-shutdown".to_owned());
}
if self.daemonize {
result.push("-daemonize".to_owned());
}
if self.stopped {
result.push("-S".to_owned());
}
Ok(result)
}
}