aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--os-posix.c5
-rw-r--r--vl.c3
2 files changed, 5 insertions, 3 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;
}
diff --git a/vl.c b/vl.c
index 8cda85f084..6d2ce45fef 100644
--- a/vl.c
+++ b/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);
}