From: 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> 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> Mime-Version: 1.0 Content-Type: text/plain Cc: kvm@vger.kernel.org, Andre Przywara To: avi@redhat.com Return-path: 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 In-Reply-To: <1245840276-12702-3-git-send-email-andre.przywara@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: 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 */ | -- 1.6.1.3