Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767AbdHON7l (ORCPT ); Tue, 15 Aug 2017 09:59:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49768 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751468AbdHON7k (ORCPT ); Tue, 15 Aug 2017 09:59:40 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com DCB102C9765 Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx05.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jpoimboe@redhat.com Date: Tue, 15 Aug 2017 08:59:27 -0500 From: Josh Poimboeuf To: Joe Lawrence Cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Jessica Yu , Jiri Kosina , Miroslav Benes , Petr Mladek Subject: Re: [PATCH v4] livepatch: introduce shadow variable API Message-ID: <20170815135927.vloyq4znm5wsc4ue@treble> References: <1502740963-31310-1-git-send-email-joe.lawrence@redhat.com> <1502740963-31310-2-git-send-email-joe.lawrence@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1502740963-31310-2-git-send-email-joe.lawrence@redhat.com> User-Agent: Mutt/1.6.0.1 (2016-04-01) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 15 Aug 2017 13:59:40 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 856 Lines: 27 On Mon, Aug 14, 2017 at 04:02:43PM -0400, Joe Lawrence wrote: > Add exported API for livepatch modules: > > klp_shadow_get() > klp_shadow_attach() > klp_shadow_get_or_attach() > klp_shadow_update_or_attach() > klp_shadow_detach() > klp_shadow_detach_all() > > that implement "shadow" variables, which allow callers to associate new > shadow fields to existing data structures. This is intended to be used > by livepatch modules seeking to emulate additions to data structure > definitions. > > See Documentation/livepatch/shadow-vars.txt for a summary of the new > shadow variable API, including a few common use cases. > > See samples/livepatch/livepatch-shadow-* for example modules that > demonstrate shadow variables. > > Signed-off-by: Joe Lawrence Acked-by: Josh Poimboeuf -- Josh