Patchwork [06/13] x86/cpuid: add "host" to the list of supported CPU models

login
register
mail settings
Submitter Andre Przywara
Date March 11, 2010, 1:39 p.m.
Message ID <1268314747-11111-7-git-send-email-andre.przywara@amd.com>
Download mbox | patch
Permalink /patch/47319/
State New
Headers show

Comments

Andre Przywara - March 11, 2010, 1:39 p.m.
Signed-off-by: Andre Przywara <andre.przywara@amd.com>
---
 target-i386/cpuid.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c
index 56ae71a..1e1c25b 100644
--- a/target-i386/cpuid.c
+++ b/target-i386/cpuid.c
@@ -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)