qemu-options: Limit the -enable-kvm option to the targets that support it
authorThomas Huth <thuth@redhat.com>
Wed, 27 Apr 2022 13:49:06 +0000 (15:49 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Apr 2022 06:52:22 +0000 (08:52 +0200)
There is no need to present the user with -enable-kvm if there
is no support for KVM on the corresponding target.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20220427134906.348118-1-thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
qemu-options.hx

index bc196808ae1e8eb14bc9ceb2933f96c2d5b68b96..5f69b94b8e7c0e08478e293cabb552c3cdbff2fe 100644 (file)
@@ -4176,7 +4176,9 @@ SRST
 ERST
 
 DEF("enable-kvm", 0, QEMU_OPTION_enable_kvm, \
-    "-enable-kvm     enable KVM full virtualization support\n", QEMU_ARCH_ALL)
+    "-enable-kvm     enable KVM full virtualization support\n",
+    QEMU_ARCH_ARM | QEMU_ARCH_I386 | QEMU_ARCH_MIPS | QEMU_ARCH_PPC |
+    QEMU_ARCH_RISCV | QEMU_ARCH_S390X)
 SRST
 ``-enable-kvm``
     Enable KVM full virtualization support. This option is only