Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1666085pxb; Fri, 20 Nov 2020 15:56:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJzGoUm69H5NCeIqZPjbQguMNelwvC0a1/1zFi83c2vBtfA0Cp2oPyMAeJIHTqKg2OYa9KQ3 X-Received: by 2002:a17:906:2932:: with SMTP id v18mr34211656ejd.144.1605916589848; Fri, 20 Nov 2020 15:56:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605916589; cv=none; d=google.com; s=arc-20160816; b=yy798t7oV8NypP0llVH6cKUK4zzPTr/+4DTZIYxPtD0WRnhXvGhL9NFPTAQk+nfEyY FOqXiuWMoRYgKK5OOFyr2hR/zaUADIDI+NunGT2kgUGsQIJt8doYrSSr75E9pyprX/e2 Iw7Oom3yo2x4lUWVkIP1m5BDxnpob6fgMa8JgWNwu0XI3aGML/qatQWH1Tl8ZIa/f4lk rRibvkeqbTqPXzpVDGRcWp7I8IlQ2Uoy65u/upvEbym532mh65CaaNrefeoNWEO9LCxV sJ4CenSu7Msr95CMEdLteuPeQ67XUWKi+KL7jO+eIowT23fyzriDqhLLtiyG+89AQ8o/ q6rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/9QmQzu0viMhe1+E2AuJjw4yABAqeWJl/tuV7zSeb+U=; b=KxqofT9YJMgouo1+9rkQ2+b+0qKMiYyuhs26n/0tsELgs8x09NqmphOu7qxf9D5LH+ QWZ7Y/HxGi9J77SG1cxAQoMm73LZg5xK43trvOuMcum0s0lJzX3Bicl1dJeHooAs/KdF XM76KLusGbPxB4Yys+F9z/2q8IY7HsSKTX3uL0hOphjqckHYGeGYPtx5xuq7QmNhvRz7 syQfZ5KA/c/1dI09fZNzX81Rawu3UoOszrOV3lad6cjvuPjhiVYb6weYTnnAUbUFL3CH BUFUi7wbkumYJH4pdV4E8v57aHnIIiHzOWFjTcQL8U8JKdKNpXFwIs2Td09CsAPHhY+X JnmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mdmSYKuo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o1si2495819ejn.643.2020.11.20.15.56.07; Fri, 20 Nov 2020 15:56:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=mdmSYKuo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728124AbgKTXx7 (ORCPT + 99 others); Fri, 20 Nov 2020 18:53:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35262 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgKTXx6 (ORCPT ); Fri, 20 Nov 2020 18:53:58 -0500 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0D71C0613CF for ; Fri, 20 Nov 2020 15:53:58 -0800 (PST) Received: by mail-pf1-x441.google.com with SMTP id y7so9386281pfq.11 for ; Fri, 20 Nov 2020 15:53:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=/9QmQzu0viMhe1+E2AuJjw4yABAqeWJl/tuV7zSeb+U=; b=mdmSYKuoJmPQiSSZKAXRHrhaYfKRSQA9hE/wfOsOCkhwS+3+67n+lejlrZY4HtZfn/ a2ORoKHB2+RW61Vt9T9zrAHoM1RsQbsuWV47pPf93KFSlEHy1Tfio9hzAUE4BkPNXx+I YITKk0YEENSGCNohJ36jZOmfNM0ry/U9Rv8sczK8LJbtzspnCR2SDBjJ4zad2AR6UovQ Szo2WkElnVp3Pq1aFadmc5JzwZozrsYu/68ODALQuad6JmMLMpwoXKqfBusvVuclgTF+ rSwKmAgZg2oXKzT79ocvKhy7QjjLbUii5XJDdT+bt/WFOVYQqnt9FCLWzuGSaXf0zzOP TH/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=/9QmQzu0viMhe1+E2AuJjw4yABAqeWJl/tuV7zSeb+U=; b=ce9M5Wjt+Jn25EUJ48Wb+6svF+ZwRn+bm0NLP9wJCM3kyXxcEdBrEhL1ePj2p7nJLj wRlReP35bQfBHWljn0Xe6aYMeMPm6ccABuwj7M37V86ztkHKbkRaq7x90vEHenOA7i14 bqwAIZsxb2e0SCGUlbaQo0dhBPo0cLMkx0Cw/O0spWN2eq6Ts8wYWCb2eXNC+wffe+pd 95oBH7sBvH4MG+X9tcf0DVgyXhqKUNbvtmTu15Xo9CxPh3jt6EGHnGB2tmLm+/I8CrLC qIpt+hiuVZNqT9KtwTId+vYlQ6PpdD/IFFpCZM/z4hFjTSApqeqlyZVWYHlQc+ps11Qi A7NA== X-Gm-Message-State: AOAM532csKp5YMDP6mY8cLDF0Z93SFfAo/+9lKwX4C79OYHQnE68wy10 D9MBpIaS4j3JPrMeIY4/sYRSIfUQeWtxyKrOldrXfA== X-Received: by 2002:a17:90a:6b04:: with SMTP id v4mr13286585pjj.101.1605916438104; Fri, 20 Nov 2020 15:53:58 -0800 (PST) MIME-Version: 1.0 References: <20201118220731.925424-1-samitolvanen@google.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 20 Nov 2020 15:53:45 -0800 Message-ID: Subject: Re: [PATCH v7 00/17] Add support for Clang LTO To: Ard Biesheuvel Cc: Sami Tolvanen , Masahiro Yamada , Steven Rostedt , Will Deacon , Josh Poimboeuf , Peter Zijlstra , Greg Kroah-Hartman , "Paul E. McKenney" , Kees Cook , clang-built-linux , Kernel Hardening , linux-arch , Linux ARM , Linux Kbuild mailing list , LKML , PCI , Alistair Delva Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 20, 2020 at 3:30 PM Ard Biesheuvel wrote: > > On Fri, 20 Nov 2020 at 21:19, Nick Desaulniers wrote: > > > > On Fri, Nov 20, 2020 at 2:30 AM Ard Biesheuvel wrote: > > > > > > On Thu, 19 Nov 2020 at 00:42, Nick Desaulniers wrote: > > > > > > > > Thanks for continuing to drive this series Sami. For the series, > > > > > > > > Tested-by: Nick Desaulniers > > > > > > > > I did virtualized boot tests with the series applied to aarch64 > > > > defconfig without CONFIG_LTO, with CONFIG_LTO_CLANG, and a third time > > > > with CONFIG_THINLTO. If you make changes to the series in follow ups, > > > > please drop my tested by tag from the modified patches and I'll help > > > > re-test. Some minor feedback on the Kconfig change, but I'll post it > > > > off of that patch. > > > > > > > > > > When you say 'virtualized" do you mean QEMU on x86? Or actual > > > virtualization on an AArch64 KVM host? > > > > aarch64 guest on x86_64 host. If you have additional configurations > > that are important to you, additional testing help would be > > appreciated. > > > > Could you run this on an actual phone? Or does Android already ship > with this stuff? By `this`, if you mean "the LTO series", it has been shipping on Android phones for years now, I think it's even required in the latest release. If you mean "the LTO series + mainline" on a phone, well there's the android-mainline of https://android.googlesource.com/kernel/common/, in which this series was recently removed in order to facilitate rebasing Android's patches on ToT-mainline until getting the series landed upstream. Bit of a chicken and the egg problem there. If you mean "the LTO series + mainline + KVM" on a phone; I don't know the precise state of aarch64 KVM and Android (Will or Marc would know). We did experiment recently with RockPI's for aach64 KVM, IIRC; I think Android is tricky as it still requires A64+A32/T32 chipsets, Alistair would know more. Might be interesting to boot a virtualized (or paravirtualized?) guest built with LTO in a host built with LTO for sure, but I don't know if we have tried that yet (I think we did try LTO guests of android kernels, but I think they were on the stock RockPI host BSP image IIRC). > > > The distinction is important here, given the potential impact of LTO > > > on things that QEMU simply does not model when it runs in TCG mode on > > > a foreign host architecture. -- Thanks, ~Nick Desaulniers