[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 3/3] i386: KVM: List -cpu host and best in -cpu ?

From: Alexander Graf
Subject: [Qemu-devel] [PATCH v2 3/3] i386: KVM: List -cpu host and best in -cpu ?
Date: Tue, 26 Jun 2012 18:39:55 +0200

The kvm_enabled() helper doesn't work in a function as early as -cpu ?
yet. It also doesn't make sense to list the -cpu ? output conditional on
the -enable-kvm parameter. So let's always mention -cpu host in the
CPU list when KVM is supported on that configuration.

In addition, this patch also adds listing of -cpu best in the -cpu ?
list, so that people know that this option exists.

Signed-off-by: Alexander Graf <address@hidden>
 target-i386/cpu.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/target-i386/cpu.c b/target-i386/cpu.c
index 98cc1ec..6c20798 100644
--- a/target-i386/cpu.c
+++ b/target-i386/cpu.c
@@ -1199,9 +1199,10 @@ void x86_cpu_list(FILE *f, fprintf_function cpu_fprintf, 
const char *optarg)
             (*cpu_fprintf)(f, "\n");
-    if (kvm_enabled()) {
-        (*cpu_fprintf)(f, "x86 %16s\n", "[host]");
-    }
+#ifdef CONFIG_KVM
+    (*cpu_fprintf)(f, "x86 %16s\n", "KVM only: [host]");
+    (*cpu_fprintf)(f, "x86 %16s\n", "KVM only: [best]");
 int cpu_x86_register(X86CPU *cpu, const char *cpu_model)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]