]> git.proxmox.com Git - qemu.git/commitdiff
resent: x86/cpuid: Add kvm32 CPU model
authorAndre Przywara <andre.przywara@amd.com>
Fri, 21 May 2010 07:50:51 +0000 (09:50 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 1 Jun 2010 17:53:09 +0000 (12:53 -0500)
Create a kvm32 CPU model that describes a least common denominator
for KVM capable guest CPUs. Useful for migration purposes.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/cpuid.c

index 56938e2a7c2cccf91575ba0e192a6790ffb898dc..7a112159ce958a571c1068e8c28b3020929a8acf 100644 (file)
@@ -363,6 +363,20 @@ static x86_def_t builtin_x86_defs[] = {
         .xlevel = 0x80000004,
         .model_id = "QEMU Virtual CPU version " QEMU_VERSION,
     },
+    {
+        .name = "kvm32",
+        .level = 5,
+        .family = 15,
+        .model = 6,
+        .stepping = 1,
+        .features = PPRO_FEATURES |
+            CPUID_MTRR | CPUID_CLFLUSH | CPUID_MCA | CPUID_PSE36,
+        .ext_features = CPUID_EXT_SSE3,
+        .ext2_features = PPRO_FEATURES & EXT2_FEATURE_MASK,
+        .ext3_features = 0,
+        .xlevel = 0x80000008,
+        .model_id = "Common 32-bit KVM processor"
+    },
     {
         .name = "coreduo",
         .level = 10,