From: Marcelo Tosatti Subject: Re: [PATCH v2 0/2] Use host cpuid facilities Date: Tue, 16 Nov 2010 16:34:02 -0200 Message-ID: <20101116183402.GB21912@amt.cnet> References: <1289312143-32480-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:32921 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754107Ab0KPTab (ORCPT ); Tue, 16 Nov 2010 14:30:31 -0500 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oAGJUNpD002756 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 16 Nov 2010 14:30:24 -0500 Content-Disposition: inline In-Reply-To: <1289312143-32480-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Nov 09, 2010 at 04:15:41PM +0200, Avi Kivity wrote: > Use the host's cpuid facilities to see if features are supporte. This > allows the clearcpuid boot parameter to work, and allows Linux to disable > nx if it is not enabled on all cpus. > > Avi Kivity (2): > KVM: SVM: Replace svm_has() by standard Linux cpuid accessors > KVM: Mask KVM_GET_SUPPORTED_CPUID data with Linux cpuid info > v2: mask the correct cpuid returned register > > arch/x86/kvm/svm.c | 15 +++++---------- > arch/x86/kvm/x86.c | 9 +++++++++ > 2 files changed, 14 insertions(+), 10 deletions(-) Applied, thanks.