From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M0cIm-0000Yb-0y for qemu-devel@nongnu.org; Sun, 03 May 2009 10:04:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M0cIg-0000XE-Fc for qemu-devel@nongnu.org; Sun, 03 May 2009 10:04:19 -0400 Received: from [199.232.76.173] (port=49134 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M0cIg-0000X5-AQ for qemu-devel@nongnu.org; Sun, 03 May 2009 10:04:14 -0400 Received: from mx2.redhat.com ([66.187.237.31]:58438) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M0cIf-00029r-Ej for qemu-devel@nongnu.org; Sun, 03 May 2009 10:04:13 -0400 From: Avi Kivity Date: Sun, 3 May 2009 17:04:00 +0300 Message-Id: <1241359444-8538-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] Fix kvm cpuid reporting List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org kvm supports an interface for reporting which cpuid features are supported. Use it for trimming the cpu feature set reported to the guest. This prevents, for example, reporting NX to a guest when in fact we do not support it. Avi Kivity (4): kvm: Add support for querying supported cpu features Make x86 cpuid feature names available in file scope Fix x86 feature modifications for features that set multiple bits kvm: Trim cpu features not supported by kvm kvm.h | 3 ++ target-i386/helper.c | 98 +++++++++++++++++++++++++++++++++---------------- target-i386/kvm.c | 80 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 149 insertions(+), 32 deletions(-)