From patchwork Sun Apr 11 20:04:27 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 49934 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EC76EB7D21 for ; Mon, 12 Apr 2010 06:26:49 +1000 (EST) Received: from localhost ([127.0.0.1]:57369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O13jx-0001H6-Mx for incoming@patchwork.ozlabs.org; Sun, 11 Apr 2010 16:26:45 -0400 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 Received: from mail87-va3-R.bigfish.com (10.7.14.241) by VA3EHSOBE004.bigfish.com (10.7.40.24) with Microsoft SMTP Server id 8.1.240.5; Sun, 11 Apr 2010 20:07:43 +0000 Received: from mail87-va3 (localhost.localdomain [127.0.0.1]) by mail87-va3-R.bigfish.com (Postfix) with ESMTP id EF8B19E807C; Sun, 11 Apr 2010 20:07:42 +0000 (UTC) X-SpamScore: -4 X-BigFish: VPS-4(zz936eMab9bhzz1202hzzz32i467h6bh2a8h62h) X-FB-SS: 5, Received: from mail87-va3 (localhost.localdomain [127.0.0.1]) by mail87-va3 (MessageSwitch) id 1271016461570367_27010; Sun, 11 Apr 2010 20:07:41 +0000 (UTC) Received: from VA3EHSMHS024.bigfish.com (unknown [10.7.14.248]) by mail87-va3.bigfish.com (Postfix) with ESMTP id 884B29E0051; Sun, 11 Apr 2010 20:07:41 +0000 (UTC) Received: from ausb3extmailp02.amd.com (163.181.251.22) by VA3EHSMHS024.bigfish.com (10.7.99.34) with Microsoft SMTP Server (TLS) id 14.0.482.39; Sun, 11 Apr 2010 20:07:41 +0000 Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with SMTP id o3BKDFvx027729; Sun, 11 Apr 2010 15:13:18 -0500 X-WSS-ID: 0L0QAKJ-02-10V-02 X-M-MSG: Received: from sausexhtp01.amd.com (sausexhtp01.amd.com [163.181.3.165]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ausb3twp02.amd.com (Tumbleweed MailGate 3.7.2) with ESMTP id 29114C871B; Sun, 11 Apr 2010 15:07:30 -0500 (CDT) Received: from storexhtp01.amd.com (172.24.4.3) by sausexhtp01.amd.com (163.181.3.165) with Microsoft SMTP Server (TLS) id 8.2.234.1; Sun, 11 Apr 2010 13:07:35 -0700 Received: from storexmb1.amd.com (10.1.1.14) by storexhtp01.amd.com (172.24.4.3) with Microsoft SMTP Server id 8.2.234.1; Sun, 11 Apr 2010 13:07:35 -0700 Received: from sausexmb1.amd.com ([163.181.3.156]) by storexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 11 Apr 2010 16:07:34 -0400 Received: from seurexmb1.amd.com ([165.204.9.130]) by sausexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 11 Apr 2010 15:07:33 -0500 Received: from gwo.osrc.amd.com ([165.204.16.204]) by seurexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Sun, 11 Apr 2010 22:07:31 +0200 Received: from localhost.localdomain (tronje.osrc.amd.com [165.204.15.48]) by gwo.osrc.amd.com (Postfix) with ESMTP id 5806F49C131; Sun, 11 Apr 2010 21:07:31 +0100 (BST) From: Andre Przywara To: anthony@codemonkey.ws Date: Sun, 11 Apr 2010 22:04:27 +0200 Message-ID: <1271016267-8755-1-git-send-email-andre.przywara@amd.com> X-Mailer: git-send-email 1.6.4 X-OriginalArrivalTime: 11 Apr 2010 20:07:31.0582 (UTC) FILETIME=[9E3F11E0:01CAD9B2] MIME-Version: 1.0 X-Reverse-DNS: ausb3extmailp02.amd.com X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ Cc: Andre Przywara , avi@redhat.com, aurelien@aurel32.net, qemu-devel@nongnu.org Subject: [Qemu-devel] [PATCH] x86/cpuid: Add kvm32 CPU model X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@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,