From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH v2 0/2] Use host cpuid facilities Date: Tue, 9 Nov 2010 16:15:41 +0200 Message-ID: <1289312143-32480-1-git-send-email-avi@redhat.com> To: Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:2472 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521Ab0KIOPp (ORCPT ); Tue, 9 Nov 2010 09:15:45 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA9EFjY9023633 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Nov 2010 09:15:45 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oA9EFig1028207 for ; Tue, 9 Nov 2010 09:15:44 -0500 Sender: kvm-owner@vger.kernel.org List-ID: 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(-) -- 1.7.3.1