Received: by 10.223.185.116 with SMTP id b49csp6180287wrg; Wed, 28 Feb 2018 05:21:48 -0800 (PST) X-Google-Smtp-Source: AH8x224xCKnxiMLV0JpKKwFYv0Fq5F9wN2fX69fNc0Mqnhh/VXCxpPDxVNzEbX1RwGBf6Lnkk4MS X-Received: by 10.101.73.197 with SMTP id t5mr14430191pgs.426.1519824108512; Wed, 28 Feb 2018 05:21:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519824108; cv=none; d=google.com; s=arc-20160816; b=L/6uBkCnY5lNX1M6AC+fe6V02LkqifdHe2UEcpGEqlMYTj7Ewy5RiFnUX0gC1MVYss y2PjC7HJTyV+9HzDHwau91W6u7Wv4fuw3WWYtY3apGs8uKxvm8biQHk0JRv6hQTE/28o zeSgdlqNgR9F+5yRFqBnGN2zmoetWG3fAggjHztU7Vqx8Hq18NkoH9gXkPOT/qc2yyJk ZAPqMKi8LQuxoGdte0JXPHiztVL4JwB22UcImufwH2xX8LuQlW7ywTbjq4bV/wNE6aaE gNjqTv89ReDFIA1FiZTvpRukrhSjVbW0PQRrbJp8KimxbZ/MxE0gm+wh78jjLTXD70o2 opGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=xAnQC31Ces4HkcEZSV1q/ttQP9bnnuZyhcL76ELEESA=; b=WTm3WC4lH5gKfZU8nbGpQRRmhH5yMl7obPiFlVKEXZAxHRpcv9XJfrQnQSDqYgl/TA AxyjsRYRagiEYjWA+jxUff/DLsabg+DqqSnPaXqUVpAXjpjHo5mCNwlBCmIRGy+KHgpM oIjtLJhE6m/U3dAQ5ZAIUdWzBLK1WRwq1no3Y2yv9z1w17/ATTJfxLTQ5wJRUPTlghVr +e6XwzfJhoUAiajr7esDmMzyXXoU9VHyX16NFyA6IbD9v5Y3NfrXks2p2NHa4bnNjVlP pMXHGfTenqoFDQ38oOaJ70N3WsdujIuU2ZmHEolO3RNNC1zUHan1IszDxzS+Yny/29qg 4L0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m16-v6si1294977pls.471.2018.02.28.05.21.32; Wed, 28 Feb 2018 05:21:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752722AbeB1NU0 (ORCPT + 99 others); Wed, 28 Feb 2018 08:20:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:38680 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752267AbeB1NUZ (ORCPT ); Wed, 28 Feb 2018 08:20:25 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 31FD8ABC8; Wed, 28 Feb 2018 13:20:24 +0000 (UTC) Date: Wed, 28 Feb 2018 14:20:22 +0100 (CET) From: Miroslav Benes To: Joe Lawrence cc: live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Josh Poimboeuf , Jessica Yu , Jiri Kosina , Petr Mladek , Jason Baron , Evgenii Shatokhin Subject: Re: [PATCH v0 2/3] livepatch: update documentation/samples for callbacks In-Reply-To: Message-ID: References: <1519421630-12025-1-git-send-email-joe.lawrence@redhat.com> <1519421630-12025-3-git-send-email-joe.lawrence@redhat.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 27 Feb 2018, Joe Lawrence wrote: > On 02/27/2018 07:36 AM, Miroslav Benes wrote: > > On Fri, 23 Feb 2018, Joe Lawrence wrote: > > > >> [ ... snip ... ] > >> > >> +If a livepatch is replaced by a cumulative patch, then only the > >> +callbacks belonging to the cumulative patch will be executed. This > >> +simplifies the livepatching core for it is the responsibility of the > >> +cumulative patch to safely revert whatever needs to be reverted. See > >> +Documentation/livepatch/cumulative.txt for more information on such > >> +patches. > > > > s/cumulative/atomic replace/ almost everywhere? > > > > 'Documentation/livepatch/cumulative.txt' should be > > 'Documentation/livepatch/cumulative-patches.txt' and we may rename it > > atomic-replace-patches.txt. I don't know. Cumulative patches forms a > > subset of atomic replace patches in my understanding. The feature itself > > is more general. Even if practically used for cumulative patches only. But > > it is for you and Petr to decide. > > Hi Miroslav, > > Thanks for reviewing! > > I guess I'm a little confused about the distinction here. > > I understood a "cumulative-patch" to mean that it would contain the sum > of all changes. So instead of this: > > patch 1 = A > + patch 2 = B > + patch 3 = C > ----------------------- > net = A + B + C > > We can group all of the changes together into a single cumulative-patch > for the same net effect: > > patch 1 = A -replaced by- > patch 2 = A + B -replaced by- > patch 3 = A + B + C Yes. > I assumed this would also mean to include any reverted changes as well. > So in the example above, if change C needed to be reverted, then: > > patch 4 = A + B > > and that would still be considered a "cumulative-patch". Ah, ok. This is where we differ. I didn't consider this to be a cumulative patch. But I understand your reasoning. Miroslav