Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O13g6-0000Uh-VA for qemu-devel@nongnu.org; Sun, 11 Apr 2010 16:22:46 -0400 Received: from [140.186.70.92] (port=33107 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O13g5-0000UE-C7 for qemu-devel@nongnu.org; Sun, 11 Apr 2010 16:22:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O13g4-0002wJ-9e for qemu-devel@nongnu.org; Sun, 11 Apr 2010 16:22:45 -0400 Received: from va3ehsobe004.messaging.microsoft.com ([216.32.180.14]:7488 helo=VA3EHSOBE004.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O13g4-0002w7-7T for qemu-devel@nongnu.org; Sun, 11 Apr 2010 16:22:44 -0400 From: Andre Przywara Date: Sun, 11 Apr 2010 22:04:27 +0200 Message-ID: <1271016267-8755-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] x86/cpuid: Add kvm32 CPU model List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: Andre Przywara , avi@redhat.com, aurelien@aurel32.net, qemu-devel@nongnu.org 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 --- target-i386/cpuid.c | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index a80baa4..76b897d 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -363,6 +363,20 @@ static x86_def_t builtin_x86_defs[] = { .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, .family = 6, -- 1.6.4