mirror of
https://github.com/qemu/qemu.git
synced 2024-11-24 03:13:44 +08:00
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>
This commit is contained in:
parent
b34bd5e5c8
commit
70678b8227
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user