Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcFgp-0002tk-Vl for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:09:00 -0500 Received: from [199.232.76.173] (port=38618 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcFgo-0002sL-Ou for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:08:58 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcFgQ-0006uN-Ku for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:08:58 -0500 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:41717 helo=TX2EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1NcFgQ-0006to-B1 for qemu-devel@nongnu.org; Tue, 02 Feb 2010 05:08:34 -0500 From: Andre Przywara Date: Tue, 2 Feb 2010 11:08:20 +0100 Message-ID: <1265105301-3455-13-git-send-email-andre.przywara@amd.com> In-Reply-To: <1265105301-3455-1-git-send-email-andre.przywara@amd.com> References: <1265105301-3455-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 12/13] cpuid: Add kvm32 CPU model List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: john.cooper@redhat.com, Andre Przywara 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 b03a363..65dcb23 100644 --- a/target-i386/cpuid.c +++ b/target-i386/cpuid.c @@ -263,6 +263,20 @@ 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 = 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