From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Hildenbrand Subject: Re: [PATCH] KVM: x86: Add MSR_AMD64_DC_CFG to the list of ignored MSRs Date: Thu, 6 Apr 2017 16:11:36 +0200 Message-ID: <780f9b8c-20a5-8561-eb9e-f46cc2c19b84@redhat.com> References: <20170406132220.17178-1-lprosek@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: joro@8bytes.org To: Ladi Prosek , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:48146 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934593AbdDFOLi (ORCPT ); Thu, 6 Apr 2017 10:11:38 -0400 In-Reply-To: <20170406132220.17178-1-lprosek@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 06.04.2017 15:22, Ladi Prosek wrote: > Hyper-V writes 0x800000000000 to MSR_AMD64_DC_CFG when running on AMD CPUs > as recommended in erratum 383, analogous to our svm_init_erratum_383. > > By ignoring the MSR, this patch enables running Hyper-V in L1 on AMD. > > Signed-off-by: Ladi Prosek > --- > arch/x86/kvm/x86.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index ccbd45e..44814b5 100644 > --- a/arch/x86/kvm/x86.c > +++ b/arch/x86/kvm/x86.c > @@ -2155,6 +2155,7 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) > case MSR_VM_HSAVE_PA: > case MSR_AMD64_PATCH_LOADER: > case MSR_AMD64_BU_CFG2: > + case MSR_AMD64_DC_CFG: > break; > > case MSR_EFER: > @@ -2417,6 +2418,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info) > case MSR_FAM10H_MMIO_CONF_BASE: > case MSR_AMD64_BU_CFG2: > case MSR_IA32_PERF_CTL: > + case MSR_AMD64_DC_CFG: > msr_info->data = 0; > break; > case MSR_K7_EVNTSEL0 ... MSR_K7_EVNTSEL3: > Looks good to me! -- Thanks, David