summaryrefslogtreecommitdiffstats
path: root/os-posix.c
diff options
context:
space:
mode:
authorAnthony Liguori2012-08-04 01:28:37 +0200
committerAnthony Liguori2012-08-04 01:28:37 +0200
commit70678b82274309e9df98b8ce359118f36697cadb (patch)
tree2368dbef378f82cb8c57b37a09f5f262b479b885 /os-posix.c
parentMerge remote-tracking branch 'bonzini/scsi-next' into staging (diff)
downloadqemu-70678b82274309e9df98b8ce359118f36697cadb.tar.gz
qemu-70678b82274309e9df98b8ce359118f36697cadb.tar.xz
qemu-70678b82274309e9df98b8ce359118f36697cadb.zip
fips: fix build on !Linux
Commit 0f66998 makes -enable-fips conditional on Linux hosts but then uses it unconditionally in vl.c. Fix this by moving the fips handling to os-posix.c and adding a condition. Cc: Paul Moore <pmoore@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'os-posix.c')
-rw-r--r--os-posix.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/os-posix.c b/os-posix.c
index daf3d6f6f3..79fa2288e4 100644
--- a/os-posix.c
+++ b/os-posix.c
@@ -188,6 +188,11 @@ void os_parse_cmd_args(int index, const char *optarg)
case QEMU_OPTION_daemonize:
daemonize = 1;
break;
+#if defined(CONFIG_LINUX)
+ case QEMU_OPTION_enablefips:
+ fips_set_state(true);
+ break;
+#endif
}
return;
}