OSDN Git Service

x86/cpuid: add "host" to the list of supported CPU models
authorAndre Przywara <andre.przywara@amd.com>
Thu, 11 Mar 2010 13:39:00 +0000 (14:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 Mar 2010 15:50:54 +0000 (16:50 +0100)
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-i386/cpuid.c

index ea71330..635c88e 100644 (file)
@@ -757,6 +757,9 @@ void x86_cpu_list (FILE *f, int (*cpu_fprintf)(FILE *f, const char *fmt, ...),
             (*cpu_fprintf)(f, "\n");
         }
     }
+    if (kvm_enabled()) {
+        (*cpu_fprintf)(f, "x86 %16s\n", "[host]");
+    }
 }
 
 int cpu_x86_register (CPUX86State *env, const char *cpu_model)