Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp341993imu; Thu, 20 Dec 2018 23:35:18 -0800 (PST) X-Google-Smtp-Source: ALg8bN4NlqwvTVGdnuogXlSOTdP8fnVPd2UKE5bG8EOXJmv5gkFtajiHIczDsyWJQDsyw89u8aD0 X-Received: by 2002:a63:94:: with SMTP id 142mr1364618pga.74.1545377718401; Thu, 20 Dec 2018 23:35:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545377718; cv=none; d=google.com; s=arc-20160816; b=SLuoLo6PT0jpI8fZlvqSoLjNB71wVnFfFcsoLt2+9akFaCEUhB90NHka07Kis2sRAt hSb6S2oQIhdUuhM/Z2/khlL7OvMq2qw7yBkPFk/MGukbewe2JZsyzp+ONMzabrYwoRo+ +artz8cA5GkD0iDvN+s7oxoWTKMo3LjA6GVtqPJ/wl2kM/hSXmt2I+/daZ2FzowBMhmY H8BHBC52yAysinEoDe8geNZdJwgbGFFtrF/SDhFPrQ/U98aTaQXHVRrUFIEG4AYCFfNQ 8QNMFoHc71L5snRrLrt7t2RT9S7B/40wuaPZXwvcPCAUC+PY8xEIGIvZcH1Oz0jvP1+V IYpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dFvqKK49LLBDBigkdojb8eDZVpU1hSVNeZ2zVYnLb/o=; b=oJ3AiB9SPtMIAi5YZaqi+LlqUX7KbrhsxTK+ciCrgp44AH98SQx8EKYLXGV6rvckVR mFSXZumsmSub22o9WAGHL8JgQPFf4yYnhalzd3i55IV+U+MsosXOkXd4llaRE2VZMbme 7glIZDtJPaOTtS2GvyaGSVUtMmlfxgfBbUWf/FspNvluyfQLLedQ5a3mjlLHAzOq+OPR 1UOPA7lgge3veDdN8EinuqpxYec46u7vtJAViF1y2LU9wXh8zzcNiv4MJnUHy6G0ZuB6 /TyW+zx9G6llto1kLWWZa9qc44KlzjAqIlwyupYOku3aCQNncZhSln0CmHOfrlTfTC/5 U2Dw== 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 b24si19888059pgi.308.2018.12.20.23.35.02; Thu, 20 Dec 2018 23:35:18 -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 S2390098AbeLTVsC (ORCPT + 99 others); Thu, 20 Dec 2018 16:48:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:51648 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730700AbeLTVsC (ORCPT ); Thu, 20 Dec 2018 16:48:02 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CF137AD6F; Thu, 20 Dec 2018 21:47:59 +0000 (UTC) Subject: Re: [PATCH] kbuild: use -flive-patching when CONFIG_LIVEPATCH is enabled To: Miroslav Benes , Jiri Kosina , Josh Poimboeuf Cc: yamada.masahiro@socionext.com, michal.lkml@markovi.net, jeyu@kernel.org, pmladek@suse.com, linux-kbuild@vger.kernel.org, live-patching@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181219141744.32392-1-mbenes@suse.cz> <20181219165428.5udrppedpdvf2u7k@treble> <20181219172127.o753af7pkrsttcgl@treble> From: Joao Moreira Message-ID: <3fec8358-f64c-57e4-fa7f-1ee91a45be9b@suse.de> Date: Thu, 20 Dec 2018 13:47:53 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/20/18 12:33 AM, Miroslav Benes wrote: > On Wed, 19 Dec 2018, Jiri Kosina wrote: > >> On Wed, 19 Dec 2018, Josh Poimboeuf wrote: >> >>> Also the commit message needs an analysis of the performance impacts. >> >> Agreed. Especially as it's expected (*) to be completely in the noise >> particularly for the kernel, it'd be good to have that documented in the >> changelog. >> >> (*) actually measured already for some subset of the IPA optimizations > > Ok, we can do that. I don't expect the results to be different from the > last measurement as Jiri mentions. The sets of disabled optimizations are > similar. > > I'll add it to v2. > > On Wed, 19 Dec 2018, Jiri Kosina wrote: > >> On Wed, 19 Dec 2018, Josh Poimboeuf wrote: >> >>>>> This option only makes sense for source-based patch generation, so isn't >>>>> it a bit premature to make this change without proper source-based patch >>>>> tooling? >>>> >>>> The reality is though that before the full-fledged patch tooling exists, >>>> people are actually already writing livepatches by hand, so this option is >>>> useful for them. >>> >>> Fair enough. > > Yes, that was the reason I sent it. It would not make sense to wait for > the tooling in this case, because -flive-patching is useful even now, > since there is a way to prepare livepatches without any tooling. > >>> Though, upstream, almost everybody seems to use kpatch-build, for which >>> this patch doesn't help. And people will continue to do so until we >>> have decent source-based tooling. Will the klp-convert patches be >>> revived soon? >> >> Let me add Joao, who's working on that. >> >> Joao, I think you had something basically ready for upstream exposure, >> right? > > I think that when Joao posted it a long time ago, the conclusion was that > it would be better to wait for the source-based tooling and have the > complete solution. I may misremember though. Your memories match mine, Miroslav. FTR, we recently integrated klp-convert to SLE. There were some fixes in comparison with the version which was submitted upstream, thus a v2 of the patches is necessary. > > If Josh thinks that it would be acceptable to have klp-convert merged even > without the tooling, I'm all for it. > Of course I can work on that and I'll be glad to do so / submit this new version, if this is now something considered useful. > We're about to start using it at SUSE and staying close to upstream would > definitely be better. > > Miroslav >