Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2994032AbbEEQH2 (ORCPT ); Tue, 5 May 2015 12:07:28 -0400 Received: from e06smtp16.uk.ibm.com ([195.75.94.112]:53793 "EHLO e06smtp16.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2993198AbbEEOe5 (ORCPT ); Tue, 5 May 2015 10:34:57 -0400 Date: Tue, 5 May 2015 16:34:50 +0200 From: Martin Schwidefsky To: Jiri Slaby Cc: live-patching@vger.kernel.org, jpoimboe@redhat.com, sjenning@redhat.com, jkosina@suse.cz, vojtech@suse.cz, mingo@redhat.com, linux-kernel@vger.kernel.org, Miroslav Benes , Heiko Carstens , linux-s390@vger.kernel.org, Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org Subject: Re: [RFC kgr on klp 4/9] livepatch: add kgr infrastructure Message-ID: <20150505163450.425f6436@mschwide> In-Reply-To: <5548C537.4050004@suse.cz> References: <1430739625-4658-1-git-send-email-jslaby@suse.cz> <1430739625-4658-4-git-send-email-jslaby@suse.cz> <20150504142301.1405a5c0@mschwide> <5548C537.4050004@suse.cz> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.23; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15050514-0025-0000-0000-00000500C0F9 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1105 Lines: 41 On Tue, 05 May 2015 15:27:19 +0200 Jiri Slaby wrote: > What I could do is to split them and make this setup: > > _TIF_WORK: > TIF_NOTIFY_RESUME 0 > TIF_SIGPENDING 1 > TIF_NEED_RESCHED 2 > TIF_KGR_IN_PROGRESS_W 3 > TIF_UPROBE 7 > > _TIF_TRACE: > TIF_SYSCALL_TRACE 24 > TIF_SYSCALL_AUDIT 25 > TIF_SECCOMP 26 > TIF_SYSCALL_TRACEPOINT 27 > TIF_KGR_IN_PROGRESS_T 28 > > ===== > > Then make TIF_KGR_IN_PROGRESS_W fire when "tm"-ing _TIF_WORK in > "__TI_flags+7". TIF_KGR_IN_PROGRESS_T will work along with _TIF_TRACE > using "tm" on "__TI_flags+4". > > What do you think? Yes, that is what I had in mind. Feel free to reorder the TIF bits in any way necessary. I have done that several times already. -- blue skies, Martin. "Reality continues to ruin my life." - Calvin. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/