From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 5/9] Allow setting the SVME bit Date: Mon, 01 Sep 2008 16:14:22 +0300 Message-ID: <48BBEAAE.70607@qumranet.com> References: <1220270281-15720-1-git-send-email-agraf@suse.de> <1220270281-15720-2-git-send-email-agraf@suse.de> <1220270281-15720-3-git-send-email-agraf@suse.de> <1220270281-15720-4-git-send-email-agraf@suse.de> <1220270281-15720-5-git-send-email-agraf@suse.de> <1220270281-15720-6-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, anthony@codemonkey.ws To: Alexander Graf Return-path: Received: from il.qumranet.com ([212.179.150.194]:16711 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbYIANOY (ORCPT ); Mon, 1 Sep 2008 09:14:24 -0400 In-Reply-To: <1220270281-15720-6-git-send-email-agraf@suse.de> Sender: kvm-owner@vger.kernel.org List-ID: Alexander Graf wrote: > Normally setting the SVME bit in EFER is not allowed, as we did > not support SVM. Not since we do, we should also allow enabling > SVM mode. > > Signed-off-by: Alexander Graf > --- > arch/x86/kvm/svm.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c > index 35c7fe7..3c9774e 100644 > --- a/arch/x86/kvm/svm.c > +++ b/arch/x86/kvm/svm.c > @@ -440,6 +440,8 @@ static __init int svm_hardware_setup(void) > if (boot_cpu_has(X86_FEATURE_NX)) > kvm_enable_efer_bits(EFER_NX); > > + kvm_enable_efer_bits(MSR_EFER_SVME_MASK); > + > Should probably the last patch, to avoid a partial implementation when bisecting. -- error compiling committee.c: too many arguments to function