From patchwork Wed Jun 24 10:44:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 32143 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5OAfLdY014349 for ; Wed, 24 Jun 2009 10:41:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751733AbZFXKlL (ORCPT ); Wed, 24 Jun 2009 06:41:11 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752649AbZFXKlL (ORCPT ); Wed, 24 Jun 2009 06:41:11 -0400 Received: from outbound-sin.frontbridge.com ([207.46.51.80]:56034 "EHLO SG2EHSOBE006.bigfish.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751733AbZFXKlK (ORCPT ); Wed, 24 Jun 2009 06:41:10 -0400 Received: from mail190-sin-R.bigfish.com (10.210.100.253) by SG2EHSOBE006.bigfish.com (10.210.112.26) with Microsoft SMTP Server id 8.1.340.0; Wed, 24 Jun 2009 10:41:11 +0000 Received: from mail190-sin (localhost.localdomain [127.0.0.1]) by mail190-sin-R.bigfish.com (Postfix) with ESMTP id 6F61110E81B6; Wed, 24 Jun 2009 10:41:11 +0000 (UTC) X-SpamScore: 6 X-BigFish: VPS6(zz19c2kzz1202hzzz32i17ch43j66h) X-Spam-TCS-SCL: 5:0 Received: by mail190-sin (MessageSwitch) id 1245840069616644_6604; Wed, 24 Jun 2009 10:41:09 +0000 (UCT) Received: from ausb3extmailp01.amd.com (unknown [163.181.251.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail190-sin.bigfish.com (Postfix) with ESMTP id 0D6851070052; Wed, 24 Jun 2009 10:41:08 +0000 (UTC) Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n5OAf12h015091; Wed, 24 Jun 2009 05:41:04 -0500 X-WSS-ID: 0KLQOC9-02-W5P-01 Received: from sausexbh1.amd.com (sausexbh1.amd.com [163.181.22.101]) by ausb3twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 29F8B123402F; Wed, 24 Jun 2009 05:40:57 -0500 (CDT) Received: from SAUSEXMB3.amd.com ([163.181.22.202]) by sausexbh1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 24 Jun 2009 05:41:02 -0500 Received: from SDRSEXMB1.amd.com ([172.20.3.116]) by SAUSEXMB3.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 24 Jun 2009 05:41:01 -0500 Received: from localhost.localdomain ([165.204.15.42]) by SDRSEXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 24 Jun 2009 12:40:45 +0200 From: Andre Przywara To: avi@redhat.com CC: kvm@vger.kernel.org, Andre Przywara Subject: [PATCH 4/4] dont trim the guest's hypervisor CPUID bit in KVM if the guest requests it Date: Wed, 24 Jun 2009 12:44:36 +0200 Message-ID: <1245840276-12702-4-git-send-email-andre.przywara@amd.com> X-Mailer: git-send-email 1.6.1.3 In-Reply-To: <1245840276-12702-3-git-send-email-andre.przywara@amd.com> References: <1245840276-12702-1-git-send-email-andre.przywara@amd.com> <1245840276-12702-2-git-send-email-andre.przywara@amd.com> <1245840276-12702-3-git-send-email-andre.przywara@amd.com> X-OriginalArrivalTime: 24 Jun 2009 10:40:45.0821 (UTC) FILETIME=[3B067AD0:01C9F4B8] MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Andre Przywara --- arch/x86/kvm/x86.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index e6e61ee..6ad0f93 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -1415,7 +1415,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function, 0 /* Reserved */ | F(CX16) | 0 /* xTPR Update, PDCM */ | 0 /* Reserved, DCA */ | F(XMM4_1) | F(XMM4_2) | 0 /* x2APIC */ | F(MOVBE) | F(POPCNT) | - 0 /* Reserved, XSAVE, OSXSAVE */; + 0 /* Reserved, XSAVE, OSXSAVE */ | F(HYPERVISOR); /* cpuid 0x80000001.ecx */ const u32 kvm_supported_word6_x86_features = F(LAHF_LM) | F(CMP_LEGACY) | F(SVM) | 0 /* ExtApicSpace */ |