Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756872AbcKCLYk (ORCPT ); Thu, 3 Nov 2016 07:24:40 -0400 Received: from mail.skyhub.de ([78.46.96.112]:48325 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753724AbcKCLYi (ORCPT ); Thu, 3 Nov 2016 07:24:38 -0400 Date: Thu, 3 Nov 2016 12:24:35 +0100 From: Borislav Petkov To: Alexander Kuleshov Cc: Thomas Gleixner , Ingo Molnar , "H . Peter Anvin" , Andy Lutomirski , Paolo Bonzini , linux-kernel@vger.kernel.org Subject: Re: [PATCH] x86/entry64: move comment about informing of context tracking in right place Message-ID: <20161103112434.o6wx4zjdnxodrvzr@pd.tnic> References: <20161024112234.21898-1-kuleshovmail@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20161024112234.21898-1-kuleshovmail@gmail.com> User-Agent: NeoMutt/20161014 (1.7.1) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1100 Lines: 34 On Mon, Oct 24, 2016 at 05:22:34PM +0600, Alexander Kuleshov wrote: > We are switching to kernel gsbase if an IRQ come from usermode with swpags. "... if an IRQ comes from ..." Also, you mean SWAPGS. Instruction names in allcaps please and spelled correctly please. > Now there is comment which describes this: > > IRQ from user mode. Switch to kernel gsbase and inform context tracking that > we're in kernel mode. > > But now we execute swapgs, next TRACE_IRQS_OFF and only then the > CALL_enter_from_user_mode macro expands to the informing of > context tracking about this event. Let's move part of comment to > the right place where actual call to context tracing occured. I don't agree with that change - SWAPGS is part of what the comment explains so it looks just fine where it is. For future patches: Please integrate scripts/checkpatch.pl in your patch creation workflow: WARNING: 'occured' may be misspelled - perhaps 'occurred'? #27: the right place where actual call to context tracing occured. -- Regards/Gruss, Boris. ECO tip #101: Trim your mails when you reply.