From c38576f41c41bd2532d6e01df270936b6731f1a9 Mon Sep 17 00:00:00 2001 From: Matt Borgerson Date: Sun, 18 Apr 2021 22:24:36 -0700 Subject: [PATCH] vl: Explicitly specify 'on' for boolean flag opts --- softmmu/vl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/softmmu/vl.c b/softmmu/vl.c index b96fb975aa..8f0fa1b0cf 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -2748,7 +2748,7 @@ void qemu_init(int argc, char **argv, char **envp) fake_argv[fake_argc++] = g_strdup_printf("xbox%s%s%s", (bootrom_arg != NULL) ? bootrom_arg : "", - short_animation ? ",short-animation" : "", + short_animation ? ",short-animation=on" : "", ",kernel-irqchip=off" ); @@ -2837,7 +2837,7 @@ void qemu_init(int argc, char **argv, char **envp) char *escaped_hdd_path = strdup_double_commas(hdd_path); fake_argv[fake_argc++] = g_strdup_printf("index=0,media=disk,file=%s%s", escaped_hdd_path, - strlen(escaped_hdd_path) > 0 ? ",locked" : ""); + strlen(escaped_hdd_path) > 0 ? ",locked=on" : ""); free(escaped_hdd_path); } }