From patchwork Fri Sep 18 11:48:13 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 33842 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 22B0AB7B76 for ; Fri, 18 Sep 2009 22:28:31 +1000 (EST) Received: from localhost ([127.0.0.1]:47579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MocZf-0003VC-43 for incoming@patchwork.ozlabs.org; Fri, 18 Sep 2009 08:28:27 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mobzr-0007uw-5E for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:27 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mobzm-0007s7-EU for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:25 -0400 Received: from [199.232.76.173] (port=38467 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mobzj-0007rk-Vp for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:20 -0400 Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:18278 helo=VA3EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1Mobzj-0003Md-Km for qemu-devel@nongnu.org; Fri, 18 Sep 2009 07:51:19 -0400 Received: from mail27-va3-R.bigfish.com (10.7.14.242) by VA3EHSOBE003.bigfish.com (10.7.40.23) with Microsoft SMTP Server id 8.1.340.0; Fri, 18 Sep 2009 11:51:19 +0000 Received: from mail27-va3 (localhost.localdomain [127.0.0.1]) by mail27-va3-R.bigfish.com (Postfix) with ESMTP id 0BC648A02CA for ; Fri, 18 Sep 2009 11:51:19 +0000 (UTC) X-SpamScore: 3 X-BigFish: VPS3(zzzz1202hzzz32i203h43j61h) X-Spam-TCS-SCL: 0:0 X-FB-SS: 5, Received: by mail27-va3 (MessageSwitch) id 1253274677787955_27126; Fri, 18 Sep 2009 11:51:17 +0000 (UCT) Received: from svlb1extmailp01.amd.com (unknown [139.95.251.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail27-va3.bigfish.com (Postfix) with ESMTP id 9BBF71880064 for ; Fri, 18 Sep 2009 11:51:17 +0000 (UTC) Received: from svlb1twp02.amd.com ([139.95.250.35]) by svlb1extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n8IBpCW5025610 for ; Fri, 18 Sep 2009 04:51:15 -0700 X-WSS-ID: 0KQ60X9-04-D7U-02 X-M-MSG: Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp02.amd.com (Tumbleweed MailGate 3.7.0) with ESMTP id 27EAA1B10293 for ; Fri, 18 Sep 2009 04:51:08 -0700 (PDT) Received: from SSVLEXMB1.amd.com ([139.95.53.181]) by SSVLEXBH1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Sep 2009 04:51:11 -0700 Received: from SF30EXMB1.amd.com ([172.20.6.49]) by SSVLEXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Sep 2009 04:51:11 -0700 Received: from seurexmb1.amd.com ([165.204.9.130]) by SF30EXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Sep 2009 13:50:54 +0200 Received: from mail.osrc.amd.com ([165.204.16.204]) by seurexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 18 Sep 2009 13:50:50 +0200 Received: from localhost.localdomain (hagen.osrc.amd.com [165.204.15.42]) by mail.osrc.amd.com (Postfix) with ESMTP id DAF8549C230; Fri, 18 Sep 2009 12:50:49 +0100 (BST) From: Andre Przywara To: qemu-devel@nongnu.org Date: Fri, 18 Sep 2009 13:48:13 +0200 Message-ID: <1253274494-13244-21-git-send-email-andre.przywara@amd.com> X-Mailer: git-send-email 1.6.1.3 In-Reply-To: <1253274494-13244-1-git-send-email-andre.przywara@amd.com> References: <1253274494-13244-1-git-send-email-andre.przywara@amd.com> X-OriginalArrivalTime: 18 Sep 2009 11:50:50.0238 (UTC) FILETIME=[449419E0:01CA3856] MIME-Version: 1.0 X-detected-operating-system: by monty-python.gnu.org: Windows 2000 SP4, XP SP1+ Cc: Andre Przywara Subject: [Qemu-devel] [PATCH v2 20/21] 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 | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/target-i386/cpuid.c b/target-i386/cpuid.c index 1721be2..505fca5 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -256,6 +256,19 @@ static x86_def_t x86_defs[] = { .model_id = "QEMU Virtual CPU version " QEMU_VERSION, }, { + .name = "kvm32", + .level = 5, + .family = 15, + .model = 6, + .stepping = 1, + .features = K8_FEATURES, + .ext_features = CPUID_EXT_SSE3, + .ext2_features = K8_FEATURES & EXT2_FEATURE_MASK, + .ext3_features = 0, + .xlevel = 0x80000008, + .model_id = "Common 32-bit KVM processor" + }, + { .name = "coreduo", .level = 10, .family = 6,