Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934927AbeAHROd (ORCPT + 1 other); Mon, 8 Jan 2018 12:14:33 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33725 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932465AbeAHROc (ORCPT ); Mon, 8 Jan 2018 12:14:32 -0500 X-Google-Smtp-Source: ACJfBosbo+3WnjKBcmhRqULMBmauL5XRtZrRhZRTUquZHf+n8OQ5OlJEt66PP1Tx3dYeaYQjYXyO9w== Date: Mon, 8 Jan 2018 18:14:28 +0100 From: Ingo Molnar To: Willy Tarreau Cc: Thomas Gleixner , linux-kernel@vger.kernel.org, x86@kernel.org, gnomes@lxorguk.ukuu.org.uk, torvalds@linux-foundation.org Subject: Re: [PATCH RFC 1/4] x86/thread_info: add TIF_NOPTI to disable PTI per task Message-ID: <20180108171428.mb2fmwsgp3pfz6bd@gmail.com> References: <1515427939-10999-1-git-send-email-w@1wt.eu> <1515427939-10999-2-git-send-email-w@1wt.eu> <20180108170356.GD10913@1wt.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180108170356.GD10913@1wt.eu> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: * Willy Tarreau wrote: > On Mon, Jan 08, 2018 at 05:57:11PM +0100, Thomas Gleixner wrote: > > On Mon, 8 Jan 2018, Willy Tarreau wrote: > > > > > This flag indicates that the task will not use isolated page tables. > > > > > > Signed-off-by: Willy Tarreau > > > --- > > > arch/x86/include/asm/thread_info.h | 8 ++++++++ > > > 1 file changed, 8 insertions(+) > > > > > > diff --git a/arch/x86/include/asm/thread_info.h b/arch/x86/include/asm/thread_info.h > > > index 0022333..2f92cf1 100644 > > > --- a/arch/x86/include/asm/thread_info.h > > > +++ b/arch/x86/include/asm/thread_info.h > > > @@ -126,6 +126,14 @@ struct thread_info { > > > #define _TIF_X32 (1 << TIF_X32) > > > #define _TIF_FSCHECK (1 << TIF_FSCHECK) > > > > > > +/* The following flags only exist on x86-64. We can't use the shift anymore > > > > Please do not use this horrible comment syle > > You mean, the fact that there is no '/*' alone on the first line or > anything else ? please use the customary (multi-line) comment style: /* * Comment ..... * ...... goes here. */ specified in Documentation/CodingStyle. Thanks, Ingo