From patchwork Fri May 21 07:50:51 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 53153 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 E7278B7D4C for ; Fri, 21 May 2010 23:00:39 +1000 (EST) Received: from localhost ([127.0.0.1]:36621 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFRm4-0002ei-TX for incoming@patchwork.ozlabs.org; Fri, 21 May 2010 08:56:24 -0400 Received: from [140.186.70.92] (port=37789 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OFRlL-0002eU-JC for qemu-devel@nongnu.org; Fri, 21 May 2010 08:55:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OFRlK-00063r-CL for qemu-devel@nongnu.org; Fri, 21 May 2010 08:55:39 -0400 Received: from va3ehsobe003.messaging.microsoft.com ([216.32.180.13]:21533 helo=VA3EHSOBE003.bigfish.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OFN2A-0005Ef-IH for qemu-devel@nongnu.org; Fri, 21 May 2010 03:52:44 -0400 Received: from mail18-va3-R.bigfish.com (10.7.14.252) by VA3EHSOBE003.bigfish.com (10.7.40.23) with Microsoft SMTP Server id 8.1.340.0; Fri, 21 May 2010 07:52:36 +0000 Received: from mail18-va3 (localhost.localdomain [127.0.0.1]) by mail18-va3-R.bigfish.com (Postfix) with ESMTP id 2A2331E825E; Fri, 21 May 2010 07:52:36 +0000 (UTC) X-SpamScore: -4 X-BigFish: VPS-4(zz936eMab9bhzz1202hzzz32i2a8h43h62h) Received: from mail18-va3 (localhost.localdomain [127.0.0.1]) by mail18-va3 (MessageSwitch) id 1274428355839176_4475; Fri, 21 May 2010 07:52:35 +0000 (UTC) Received: from VA3EHSMHS022.bigfish.com (unknown [10.7.14.253]) by mail18-va3.bigfish.com (Postfix) with ESMTP id BF3E617E804E; Fri, 21 May 2010 07:52:35 +0000 (UTC) Received: from ausb3extmailp01.amd.com (163.181.251.8) by VA3EHSMHS022.bigfish.com (10.7.99.32) with Microsoft SMTP Server (TLS) id 14.0.482.44; Fri, 21 May 2010 07:52:35 +0000 Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with SMTP id o4L7dkrq004024; Fri, 21 May 2010 02:39:49 -0500 X-WSS-ID: 0L2RF7A-02-E1A-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 2BACDC8ACF; Fri, 21 May 2010 02:52:21 -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.254.0; Fri, 21 May 2010 02:52:29 -0500 Received: from gwo.osrc.amd.com (165.204.16.204) by storexhtp01.amd.com (172.24.4.3) with Microsoft SMTP Server id 8.2.254.0; Fri, 21 May 2010 03:52:29 -0400 Received: from localhost.localdomain (tronje.osrc.amd.com [165.204.15.48]) by gwo.osrc.amd.com (Postfix) with ESMTP id 96A3F49C195; Fri, 21 May 2010 08:52:27 +0100 (BST) From: Andre Przywara To: Date: Fri, 21 May 2010 09:50:51 +0200 Message-ID: <1274428251-10836-1-git-send-email-andre.przywara@amd.com> X-Mailer: git-send-email 1.6.4 MIME-Version: 1.0 X-Reverse-DNS: unknown 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] resent: 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,