| str_entry "auto_shutdown_try_save"
| str_entry "auto_shutdown_try_shutdown"
| str_entry "auto_shutdown_poweroff"
+ | int_entry "auto_shutdown_wait"
let process_entry = str_entry "hugetlbfs_mount"
| str_entry "bridge_helper"
# set to 'none' for system daemons to avoid dueling actions
#auto_shutdown_poweroff = "all"
+# How may seconds to wait for running VMs to gracefully shutdown
+# when 'auto_shutdown_try_shutdown' is enabled. If set to 0
+# then an arbitrary built-in default value will be used (which
+# is currently 30 secs)
+#auto_shutdown_wait = 30
+
# If provided by the host and a hugetlbfs mount point is configured,
# a guest may request huge page backing. When this mount point is
# unspecified here, determination of a host mount point in /proc/mounts
cfg->autoShutdownPoweroff = autoShutdownVal;
}
+ if (virConfGetValueUInt(conf, "auto_shutdown_wait",
+ &cfg->autoShutdownWait) < 0)
+ return -1;
+
return 0;
}
virDomainDriverAutoShutdownScope autoShutdownTrySave;
virDomainDriverAutoShutdownScope autoShutdownTryShutdown;
virDomainDriverAutoShutdownScope autoShutdownPoweroff;
+ unsigned int autoShutdownWait;
char *lockManagerName;
.trySave = cfg->autoShutdownTrySave,
.tryShutdown = cfg->autoShutdownTryShutdown,
.poweroff = cfg->autoShutdownPoweroff,
+ .waitShutdownSecs = cfg->autoShutdownWait,
};
virDomainDriverAutoShutdown(&ascfg);
{ "auto_shutdown_try_save" = "persistent" }
{ "auto_shutdown_try_shutdown" = "all" }
{ "auto_shutdown_poweroff" = "all" }
+{ "auto_shutdown_wait" = "30" }
{ "hugetlbfs_mount" = "/dev/hugepages" }
{ "bridge_helper" = "qemu-bridge-helper" }
{ "set_process_name" = "1" }