Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998AbcDRPR6 (ORCPT ); Mon, 18 Apr 2016 11:17:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:32979 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751521AbcDRPR4 (ORCPT ); Mon, 18 Apr 2016 11:17:56 -0400 Date: Mon, 18 Apr 2016 10:17:54 -0500 From: Josh Poimboeuf To: Miroslav Benes Cc: jikos@kernel.org, jeyu@redhat.com, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, vojtech@suse.com, jslaby@suse.cz, pmladek@suse.cz Subject: Re: [RFC PATCH 0/2] s390/klp: s390 support Message-ID: <20160418151754.etezfmuv7jk4uf5w@treble> References: <20160414133951.eydmvevb65jzse5e@treble> <1460991670-32187-1-git-send-email-mbenes@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1460991670-32187-1-git-send-email-mbenes@suse.cz> User-Agent: Mutt/1.6.0.1 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1233 Lines: 32 On Mon, Apr 18, 2016 at 05:01:08PM +0200, Miroslav Benes wrote: > So this is something we have in kGraft for a while (though the actual > implementation in s390's entry.S differs). > > The first patch is needed because we want our TIF flag to be part of > _TIF_WORK and s390's tm instruction tests only 8-bits. > > The second patch adds a call to klp_update_task_universe() to entry.S. > Specifically to syscall and interrupt return paths. > > WARNING: It is only compile-tested. It even cannot be linked, because > klp_update_task_universe() is static inline. Josh, you're gonna change > this part anyway to remove TIF_KLP_NEED_UPDATE from arch-independent > code, aren't you? > > Comments are obviously welcome. s390 maintainters not CC'ed yet. > > Jiri Slaby (1): > s390: livepatch, reorganize TIF bits > > Miroslav Benes (1): > s390/klp: update task universe when exiting kernel > > arch/s390/include/asm/thread_info.h | 24 ++++++++++++++++-------- > arch/s390/kernel/entry.S | 31 ++++++++++++++++++++++++++++++- > 2 files changed, 46 insertions(+), 9 deletions(-) Yeah, I think I will need to do something like change klp_update_task_universe() to be non-inline. Thanks a lot for the code! -- Josh