From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754949AbbIBXbc (ORCPT ); Wed, 2 Sep 2015 19:31:32 -0400 Received: from mga11.intel.com ([192.55.52.93]:58890 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751897AbbIBXb2 (ORCPT ); Wed, 2 Sep 2015 19:31:28 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,457,1437462000"; d="scan'208";a="554163286" Subject: [PATCH 00/15] [v4] x86, fpu: XSAVE cleanups and sanity checks To: dave@sr71.net Cc: mingo@redhat.com, x86@kernel.org, bp@alien8.de, fenghua.yu@intel.com, tim.c.chen@linux.intel.com, linux-kernel@vger.kernel.org From: Dave Hansen Date: Wed, 02 Sep 2015 16:31:23 -0700 Message-Id: <20150902233123.3A7E5FB0@viggo.jf.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Changes in v4: * Fix up a few compile errors/warnings Changes in v3: * rework XSTATE_* macros using Ingo's suggested naming * change state size printk to be in decimal * add some more sanity-checking to detect and work around an undersized 'xregs_state' * remove "nr_" from some of the names used. Changes in v2: * remove references to Processor Trace XSAVE state (will defer to another patch set) * Remove some cruft from last patch * move last_good_offset fix in to the patch that introduced it These patches make some updates to the x86 XSAVE code. They have been build and boot tested including on hardware and/or simulators with AVX-512 and MPX. It boots in all of the tested configurations without hitting any of the new warnings in this code. I even added the Memory Protecion Keys (the xfeature after MPX) patches on top of this and everything works fine. There are basically 5 things going on here: * removal of the LWP (lightweight profiling) code * naming and type cleanups * removal of xfeatures_nr variable * addition of AVX-512 C structures * new sanity checks of XSAVE buffer sizing Cc: Ingo Molnar Cc: x86@kernel.org Cc: Borislav Petkov Cc: Fenghua Yu Cc: Tim Chen Cc: linux-kernel@vger.kernel.org