Skip to contentSkip to conversation

qemu-options: Limit the -enable-kvm option to the targets that support it

PATCH Applied Thomas Huth 2 participants 2 messages Apr 27, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qemu-options: Limit the -enable-kvm option to the targets that support it

There is no need to present the user with -enable-kvm if there is no support for KVM on the corresponding target.

---
 qemu-options.hx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
qemu-options.hx +3 -1
index cc3a39d21a..af1c8feda6 100644
@@ -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
Signature · 1 line
2.27.0