From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH 8/9] allow read access to MSR_VM_VR Date: Thu, 30 Oct 2008 14:15:23 -0500 Message-ID: <490A07CB.70206@codemonkey.ws> References: <1224522290-11740-1-git-send-email-agraf@suse.de> <1224522290-11740-2-git-send-email-agraf@suse.de> <1224522290-11740-3-git-send-email-agraf@suse.de> <1224522290-11740-4-git-send-email-agraf@suse.de> <1224522290-11740-5-git-send-email-agraf@suse.de> <1224522290-11740-6-git-send-email-agraf@suse.de> <1224522290-11740-7-git-send-email-agraf@suse.de> <1224522290-11740-8-git-send-email-agraf@suse.de> <1224522290-11740-9-git-send-email-agraf@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org, joro@8bytes.org, avi@redhat.com, Joerg Roedel To: Alexander Graf Return-path: Received: from el-out-1112.google.com ([209.85.162.176]:57936 "EHLO el-out-1112.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754663AbYJ3TP2 (ORCPT ); Thu, 30 Oct 2008 15:15:28 -0400 Received: by el-out-1112.google.com with SMTP id z25so410089ele.1 for ; Thu, 30 Oct 2008 12:15:27 -0700 (PDT) In-Reply-To: <1224522290-11740-9-git-send-email-agraf@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: Alexander Graf wrote: > From: Joerg Roedel > > KVM tries to read the VM_CR MSR to find out if SVM was disabled by > the BIOS. So implement read support for this MSR to make nested > SVM running. > > Signed-off-by: Joerg Roedel > Signed-off-by: Alexander Graf > --- > arch/x86/kvm/svm.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 720b610..4582699 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -1869,6 +1869,9 @@ static int svm_get_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 *data) > case MSR_VM_HSAVE_PA: > *data = 0; > break; > + case MSR_VM_CR: > + *data = 0; > + break; > It would be useful to support setting this value too. Then we could disable SVM support by writing the MSR in the BIOS. Regards, Anthony Liguori > default: > return kvm_get_msr_common(vcpu, ecx, data); > } >