From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3qxQ4f6VG2zDqB4 for ; Sat, 30 Apr 2016 06:18:26 +1000 (AEST) Date: Fri, 29 Apr 2016 15:18:22 -0500 From: Josh Poimboeuf To: Andy Lutomirski Cc: Jessica Yu , Jiri Kosina , Miroslav Benes , Ingo Molnar , Peter Zijlstra , Michael Ellerman , Heiko Carstens , live-patching@vger.kernel.org, "linux-kernel@vger.kernel.org" , X86 ML , linuxppc-dev@lists.ozlabs.org, "linux-s390@vger.kernel.org" , Vojtech Pavlik , Jiri Slaby , Petr Mladek , Chris J Arges , Andy Lutomirski Subject: Re: [RFC PATCH v2 09/18] livepatch/x86: add TIF_PATCH_PENDING thread flag Message-ID: <20160429201822.rj5hbkfkjgrdxlz6@treble> References: <6360fe5cab85aad424600518f645a9ac773cc72e.1461875890.git.jpoimboe@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 In-Reply-To: List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, Apr 29, 2016 at 11:08:04AM -0700, Andy Lutomirski wrote: > On Thu, Apr 28, 2016 at 1:44 PM, Josh Poimboeuf wrote: > > Add the TIF_PATCH_PENDING thread flag to enable the new livepatch > > per-task consistency model for x86_64. The bit getting set indicates > > the thread has a pending patch which needs to be applied when the thread > > exits the kernel. > > > > The bit is placed in the least-significant word of the thread_info flags > > NAK to that part. > > The least-significant word thing is a huge hack that has gotten out of > control. Please add the thing explicitly to all relevant masks. Yeah, it is quite dangerous. I'll make it explicit, and make all the other _TIF_ALLWORK_MASK flags explicit while I'm at it. -- Josh