From eafaf1e5ab30346d6e9ac676ec6b7a3eca4ccce3 Mon Sep 17 00:00:00 2001 From: Andre Przywara Date: Fri, 21 May 2010 09:50:51 +0200 Subject: [PATCH] resent: x86/cpuid: Add kvm32 CPU model 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 Signed-off-by: Anthony Liguori --- target-i386/cpuid.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 56938e2a7c..7a112159ce 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -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,