mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 16:23:55 -06: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
2 changed files with 5 additions and 3 deletions
3
vl.c
3
vl.c
|
@ -3199,9 +3199,6 @@ int main(int argc, char **argv, char **envp)
|
|||
case QEMU_OPTION_qtest_log:
|
||||
qtest_log = optarg;
|
||||
break;
|
||||
case QEMU_OPTION_enablefips:
|
||||
fips_set_state(true);
|
||||
break;
|
||||
default:
|
||||
os_parse_cmd_args(popt->index, optarg);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue