From: Eduardo Habkost Subject: [PATCH 0/3] kvm-unit-tests: Check CPUID level/xlevel before using CPUID data Date: Thu, 28 Aug 2014 15:02:27 -0300 Message-ID: <1409248950-16268-1-git-send-email-ehabkost@redhat.com> Cc: Paolo Bonzini To: kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1037 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750892AbaH1SCi (ORCPT ); Thu, 28 Aug 2014 14:02:38 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s7SI2bL1024181 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 28 Aug 2014 14:02:38 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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(-) -- 1.9.3