From patchwork Mon Mar 3 05:24:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liu, Jinsong" X-Patchwork-Id: 325679 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 30EAE2C00CC for ; Mon, 3 Mar 2014 16:24:53 +1100 (EST) Received: from localhost ([::1]:37915 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKLMu-0002i5-Jc for incoming@patchwork.ozlabs.org; Mon, 03 Mar 2014 00:24:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40633) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKLMc-0002RT-0q for qemu-devel@nongnu.org; Mon, 03 Mar 2014 00:24:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKLMX-0007SL-M8 for qemu-devel@nongnu.org; Mon, 03 Mar 2014 00:24:29 -0500 Received: from mga02.intel.com ([134.134.136.20]:38935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKLMX-0007SA-Ec for qemu-devel@nongnu.org; Mon, 03 Mar 2014 00:24:25 -0500 Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga101.jf.intel.com with ESMTP; 02 Mar 2014 21:24:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,575,1389772800"; d="scan'208,223";a="492644427" Received: from fmsmsx105.amr.corp.intel.com ([10.19.9.36]) by orsmga002.jf.intel.com with ESMTP; 02 Mar 2014 21:24:22 -0800 Received: from fmsmsx119.amr.corp.intel.com (10.19.9.28) by FMSMSX105.amr.corp.intel.com (10.19.9.36) with Microsoft SMTP Server (TLS) id 14.3.123.3; Sun, 2 Mar 2014 21:24:22 -0800 Received: from shsmsx104.ccr.corp.intel.com (10.239.110.15) by FMSMSX119.amr.corp.intel.com (10.19.9.28) with Microsoft SMTP Server (TLS) id 14.3.123.3; Sun, 2 Mar 2014 21:24:22 -0800 Received: from shsmsx101.ccr.corp.intel.com ([169.254.1.26]) by SHSMSX104.ccr.corp.intel.com ([169.254.5.227]) with mapi id 14.03.0123.003; Mon, 3 Mar 2014 13:24:15 +0800 From: "Liu, Jinsong" To: Paolo Bonzini , "'qemu-devel@nongnu.org'" , "'kvm@vger.kernel.org'" , "'linux-kernel@vger.kernel.org'" Thread-Topic: [PATCH] target-i386: bugfix of Intel MPX Thread-Index: Ac82oNCIFQFsH9+FTXuk6EyHE47FPg== Date: Mon, 3 Mar 2014 05:24:14 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 134.134.136.20 Cc: "Mallick, Asit K" , "'gleb@redhat.com'" , "'hpa@zytor.com'" Subject: [Qemu-devel] [PATCH] target-i386: bugfix of Intel MPX X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From 3a7783cd9a0556787809d3d5ecb5f2b85dd9fc02 Mon Sep 17 00:00:00 2001 From: Liu Jinsong Date: Mon, 3 Mar 2014 18:56:39 +0800 Subject: [PATCH] target-i386: bugfix of Intel MPX The correct size of cpuid 0x0d sub-leaf 4 is 0x40, not 0x10. This is confirmed by Anvin H Peter and Mallick Asit K. Signed-off-by: Liu Jinsong Cc: H. Peter Anvin Cc: Asit K Mallick --- target-i386/cpu.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 0e8812a..9f69d7e 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -339,7 +339,7 @@ static const ExtSaveArea ext_save_areas[] = { [3] = { .feature = FEAT_7_0_EBX, .bits = CPUID_7_0_EBX_MPX, .offset = 0x3c0, .size = 0x40 }, [4] = { .feature = FEAT_7_0_EBX, .bits = CPUID_7_0_EBX_MPX, - .offset = 0x400, .size = 0x10 }, + .offset = 0x400, .size = 0x40 }, }; const char *get_register_name_32(unsigned int reg)