Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756516AbcDNPUh (ORCPT ); Thu, 14 Apr 2016 11:20:37 -0400 Received: from verein.lst.de ([213.95.11.211]:42872 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756492AbcDNPUc (ORCPT ); Thu, 14 Apr 2016 11:20:32 -0400 Date: Thu, 14 Apr 2016 17:20:29 +0200 From: Torsten Duwe To: Michael Ellerman Cc: Jiri Kosina , Miroslav Benes , Josh Poimboeuf , linuxppc-dev@ozlabs.org, bsingharora@gmail.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, kamalesh@linux.vnet.ibm.com, pmladek@suse.com, jeyu@redhat.com, live-patching@vger.kernel.org Subject: Re: [PATCH 0/5] Live patching for powerpc Message-ID: <20160414152029.GA24525@lst.de> References: <1460552003-15409-1-git-send-email-mpe@ellerman.id.au> <1460616590.2754.6.camel@ellerman.id.au> <20160414125735.GA20296@lst.de> <1460639282.21066.5.camel@ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1460639282.21066.5.camel@ellerman.id.au> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3578 Lines: 93 On Thu, Apr 14, 2016 at 11:08:02PM +1000, Michael Ellerman wrote: > On Thu, 2016-04-14 at 14:57 +0200, Torsten Duwe wrote: > > > FTR: then I still have a few ppc64 hunks floating around to support certain consistency > > models... > > OK. I'm not quite sure what you mean but post them and we'll see I guess :) It's *roughly* the ppc64 equivalent of Josh Poimboeuf's Mar 25 | [RFC PATCH v1.9 14/14] livepatch: update task universe when exiting kernel which only considers x86. It's forward ported from an earlier code base; there's some glue missing, but here it is, for reference. Signed-off-by: Torsten Duwe diff --git a/arch/powerpc/include/asm/thread_info.h b/arch/powerpc/include/asm/thread_info.h index b034ecd..3e749f4 100644 --- a/arch/powerpc/include/asm/thread_info.h +++ b/arch/powerpc/include/asm/thread_info.h @@ -92,6 +92,7 @@ static inline struct thread_info *current_thread_info(void) TIF_NEED_RESCHED */ #define TIF_32BIT 4 /* 32 bit binary */ #define TIF_RESTORE_TM 5 /* need to restore TM FP/VEC/VSX */ +#define TIF_KLP_NEED_UPDATE 6 /* kGraft patching in progress */ #define TIF_SYSCALL_AUDIT 7 /* syscall auditing active */ #define TIF_SINGLESTEP 8 /* singlestepping active */ #define TIF_NOHZ 9 /* in adaptive nohz mode */ @@ -115,8 +116,10 @@ static inline struct thread_info *current_thread_info(void) #define _TIF_POLLING_NRFLAG (1<