Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754070AbcJGJpa (ORCPT ); Fri, 7 Oct 2016 05:45:30 -0400 Received: from terminus.zytor.com ([198.137.202.10]:33972 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752839AbcJGJpT (ORCPT ); Fri, 7 Oct 2016 05:45:19 -0400 Date: Fri, 7 Oct 2016 02:44:11 -0700 From: tip-bot for Andy Lutomirski Message-ID: Cc: dave.hansen@linux.intel.com, bp@alien8.de, peterz@infradead.org, hpa@zytor.com, torvalds@linux-foundation.org, luto@kernel.org, oleg@redhat.com, dvlasenk@redhat.com, brgerst@gmail.com, jpoimboe@redhat.com, linux-kernel@vger.kernel.org, fenghua.yu@intel.com, tglx@linutronix.de, riel@redhat.com, quentin.casasnovas@oracle.com, mingo@kernel.org Reply-To: peterz@infradead.org, hpa@zytor.com, bp@alien8.de, dvlasenk@redhat.com, torvalds@linux-foundation.org, luto@kernel.org, oleg@redhat.com, dave.hansen@linux.intel.com, riel@redhat.com, tglx@linutronix.de, mingo@kernel.org, quentin.casasnovas@oracle.com, brgerst@gmail.com, jpoimboe@redhat.com, fenghua.yu@intel.com, linux-kernel@vger.kernel.org In-Reply-To: <1475627678-20788-4-git-send-email-riel@redhat.com> References: <1475627678-20788-4-git-send-email-riel@redhat.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/fpu] x86/fpu: Remove the XFEATURE_MASK_EAGER/LAZY distinction Git-Commit-ID: 2f7fada23549b4657e9ea92eeddebc878db569d2 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2365 Lines: 63 Commit-ID: 2f7fada23549b4657e9ea92eeddebc878db569d2 Gitweb: http://git.kernel.org/tip/2f7fada23549b4657e9ea92eeddebc878db569d2 Author: Andy Lutomirski AuthorDate: Tue, 4 Oct 2016 20:34:32 -0400 Committer: Ingo Molnar CommitDate: Fri, 7 Oct 2016 11:14:29 +0200 x86/fpu: Remove the XFEATURE_MASK_EAGER/LAZY distinction Now that lazy mode is gone, we don't need to distinguish which xfeatures require eager mode. Signed-off-by: Andy Lutomirski Signed-off-by: Rik van Riel Cc: Borislav Petkov Cc: Brian Gerst Cc: Dave Hansen Cc: Denys Vlasenko Cc: Fenghua Yu Cc: H. Peter Anvin Cc: Josh Poimboeuf Cc: Linus Torvalds Cc: Oleg Nesterov Cc: Peter Zijlstra Cc: Quentin Casasnovas Cc: Thomas Gleixner Cc: pbonzini@redhat.com Link: http://lkml.kernel.org/r/1475627678-20788-4-git-send-email-riel@redhat.com Signed-off-by: Ingo Molnar --- arch/x86/include/asm/fpu/xstate.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/arch/x86/include/asm/fpu/xstate.h b/arch/x86/include/asm/fpu/xstate.h index d4957ac..1b2799e 100644 --- a/arch/x86/include/asm/fpu/xstate.h +++ b/arch/x86/include/asm/fpu/xstate.h @@ -21,20 +21,16 @@ /* Supervisor features */ #define XFEATURE_MASK_SUPERVISOR (XFEATURE_MASK_PT) -/* Supported features which support lazy state saving */ -#define XFEATURE_MASK_LAZY (XFEATURE_MASK_FP | \ +/* All currently supported features */ +#define XCNTXT_MASK (XFEATURE_MASK_FP | \ XFEATURE_MASK_SSE | \ XFEATURE_MASK_YMM | \ XFEATURE_MASK_OPMASK | \ XFEATURE_MASK_ZMM_Hi256 | \ XFEATURE_MASK_Hi16_ZMM | \ - XFEATURE_MASK_PKRU) - -/* Supported features which require eager state saving */ -#define XFEATURE_MASK_EAGER (XFEATURE_MASK_BNDREGS | XFEATURE_MASK_BNDCSR) - -/* All currently supported features */ -#define XCNTXT_MASK (XFEATURE_MASK_LAZY | XFEATURE_MASK_EAGER) + XFEATURE_MASK_PKRU | \ + XFEATURE_MASK_BNDREGS | \ + XFEATURE_MASK_BNDCSR) #ifdef CONFIG_X86_64 #define REX_PREFIX "0x48, "