From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH 0/3] kvm-unit-tests: Check CPUID level/xlevel before using CPUID data Date: Fri, 29 Aug 2014 09:54:12 +0200 Message-ID: <540031A4.3000505@redhat.com> References: <1409248950-16268-1-git-send-email-ehabkost@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 7bit To: Eduardo Habkost , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:16908 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751678AbaH2HyP (ORCPT ); Fri, 29 Aug 2014 03:54:15 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7T7sFpS008946 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 29 Aug 2014 03:54:15 -0400 In-Reply-To: <1409248950-16268-1-git-send-email-ehabkost@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 28/08/2014 20:02, Eduardo Habkost ha scritto: > Change the kvm-unit-tests x86 code to always check CPUID level/xlevel before > looking at CPUID data. Otherwise, the test code will be looking at bogus data. > > Eduardo Habkost (3): > x86: apic: Look up MAXPHYADDR on CPUID correctly > x86: vmx: Use cpuid_maxphyaddr() > x86: Check level, xlevel before returning CPUID data > > lib/x86/processor.h | 18 +++++++++++++++++- > x86/apic.c | 2 +- > x86/vmx.c | 6 +++--- > 3 files changed, 21 insertions(+), 5 deletions(-) > Applying this series, thanks. Paolo