qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qemu-options: Limit the -enable-kvm option to the targets that support it
@ 2022-04-27 13:49 Thomas Huth
  2022-04-27 14:19 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Thomas Huth @ 2022-04-27 13:49 UTC (permalink / raw)
  To: qemu-devel
  Cc: Peter Maydell, Daniel Henrique Barboza, qemu-trivial, Huacai Chen,
	Marcelo Tosatti, Halil Pasic, Cédric Le Goater,
	Paolo Bonzini, Christian Borntraeger

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>
---
 qemu-options.hx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/qemu-options.hx b/qemu-options.hx
index cc3a39d21a..af1c8feda6 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -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
-- 
2.27.0



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] qemu-options: Limit the -enable-kvm option to the targets that support it
  2022-04-27 13:49 [PATCH] qemu-options: Limit the -enable-kvm option to the targets that support it Thomas Huth
@ 2022-04-27 14:19 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2022-04-27 14:19 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Peter Maydell, Daniel Henrique Barboza, qemu-trivial,
	Marcelo Tosatti, qemu-devel, Halil Pasic, Cédric Le Goater,
	Huacai Chen, Christian Borntraeger

Queued, thanks.

Paolo




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-27 14:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-27 13:49 [PATCH] qemu-options: Limit the -enable-kvm option to the targets that support it Thomas Huth
2022-04-27 14:19 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).