mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-12 12:29:11 +00:00
govmm: Drop QEMU's Daemonize
knob
Code isn't used anymore. Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
@@ -2684,9 +2684,6 @@ type Knobs struct {
|
||||
// NoGraphic completely disables graphic output.
|
||||
NoGraphic bool
|
||||
|
||||
// Daemonize will turn the qemu process into a daemon
|
||||
Daemonize bool
|
||||
|
||||
// Both HugePages and MemPrealloc require the Memory.Size of the VM
|
||||
// to be set, as they need to reserve the memory upfront in order
|
||||
// for the VM to boot without errors.
|
||||
@@ -3125,10 +3122,6 @@ func (config *Config) appendKnobs() {
|
||||
config.qemuParams = append(config.qemuParams, "--no-shutdown")
|
||||
}
|
||||
|
||||
if config.Knobs.Daemonize {
|
||||
config.qemuParams = append(config.qemuParams, "-daemonize")
|
||||
}
|
||||
|
||||
config.appendMemoryKnobs()
|
||||
|
||||
if config.Knobs.Mlock {
|
||||
|
@@ -445,13 +445,12 @@ func TestAppendEmptyDevice(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAppendKnobsAllTrue(t *testing.T) {
|
||||
var knobsString = "-no-user-config -nodefaults -nographic --no-reboot -daemonize -overcommit mem-lock=on -S"
|
||||
var knobsString = "-no-user-config -nodefaults -nographic --no-reboot -overcommit mem-lock=on -S"
|
||||
knobs := Knobs{
|
||||
NoUserConfig: true,
|
||||
NoDefaults: true,
|
||||
NoGraphic: true,
|
||||
NoReboot: true,
|
||||
Daemonize: true,
|
||||
MemPrealloc: true,
|
||||
FileBackedMem: true,
|
||||
MemShared: true,
|
||||
|
Reference in New Issue
Block a user