Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751680AbdLBGlC (ORCPT ); Sat, 2 Dec 2017 01:41:02 -0500 Received: from la.guarana.org ([173.254.219.205]:54504 "EHLO la.guarana.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751440AbdLBGlB (ORCPT ); Sat, 2 Dec 2017 01:41:01 -0500 Date: Sat, 2 Dec 2017 01:41:00 -0500 From: Kevin Easton To: Dave Hansen Cc: Andy Lutomirski , Ingo Molnar , "linux-kernel@vger.kernel.org" , Thomas Gleixner , "H . Peter Anvin" , Peter Zijlstra , Borislav Petkov , Linus Torvalds Subject: Re: [PATCH 16/21] x86/entry/64: Use a per-CPU trampoline stack for IDT entries Message-ID: <20171202064100.GA14200@la.guarana.org> References: <20171127104529.12435-1-mingo@kernel.org> <20171127104529.12435-17-mingo@kernel.org> <305ed448-6f8e-eecd-d120-546efc185443@linux.intel.com> <5b74d67c-8253-8585-c8c0-9e61e3f119b2@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b74d67c-8253-8585-c8c0-9e61e3f119b2@linux.intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1116 Lines: 32 > From: Dave Hansen > > The "SYSENTER" stack is used for a lot more than SYSENTER now. > Give it a better string to display in stack dumps. > > We should probably cleanse the 64-bit code of the remaining > "SYSENTER" nomenclature too at some point. > > Signed-off-by: Dave Hansen > --- > > b/arch//x86/kernel/dumpstack_64.c | 10 ++++++++-- > 1 file changed, 8 insertions(+), 2 deletions(-) > > diff -puN arch//x86/kernel/dumpstack_64.c~SYSENTER-rename arch//x86/kernel/dumpstack_64.c > --- a/arch//x86/kernel/dumpstack_64.c~SYSENTER-rename 2017-12-01 12:43:16.768707737 -0800 > +++ b/arch//x86/kernel/dumpstack_64.c 2017-12-01 13:19:21.741702337 -0800 > @@ -37,8 +37,14 @@ const char *stack_type_name(enum stack_t > if (type == STACK_TYPE_IRQ) > return "IRQ"; > > - if (type == STACK_TYPE_SYSENTER) > - return "SYSENTER"; > + if (type == STACK_TYPE_SYSENTER) { > + /* > + * On 64-bit, we have a generic entry stack that we > + * use for all the kernel try points, including > + * SYSENTER. ITYM "kernel entry points". - Kevin