]> git.proxmox.com Git - qemu.git/blobdiff - os-posix.c
target-microblaze: switch to AREG0 free mode
[qemu.git] / os-posix.c
index e3ed49722497e08f2dbda50a732200ed8de46493..79fa2288e486d85888ef41136cef019b46de4257 100644 (file)
 #include <sys/prctl.h>
 #endif
 
+#ifdef __FreeBSD__
+#include <sys/sysctl.h>
+#endif
+
 static struct passwd *user_pwd;
 static const char *chroot_dir;
 static int daemonize;
@@ -184,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;
 }