Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1848093pxb; Fri, 20 Nov 2020 23:39:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJwTP1qrOq3NYU33KaBk0x0/tC1rA7COzdYyYsP4fDo71u1qf36OIqgawWclCQDbTQI3Ji68 X-Received: by 2002:a50:c28a:: with SMTP id o10mr38157853edf.222.1605944383462; Fri, 20 Nov 2020 23:39:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605944383; cv=none; d=google.com; s=arc-20160816; b=Jn3m3J0if1wJMr7ts15v5j9W34P43RVrsS8cfjhwS3gqb+6a9JW0LRGC5v5CZ5J66h hOKD7xnQRWgOg4sT9dDDHIsc6OTY5ZFKfq+fD7+U5kJzhlHfW3pe452nNx0qowdS6ala Zpcyeddceo5muIiGUX0goPHBfW9FHcgsOsPxD9u5EsjTqLw8DQsu6NLtqFduqC1ESVqn 384NJJ7ejsSm5O1yWslAajvCWvz6HCwgdo3MPTai/dvpZthHr+Avu4j952phKpgXYhOM fx3jrmOSnBr/VPh6pjzzTEoMChJsWQ4db6jc/FgntMCTYNzEpP62guJI4v7CxhMBOoGC mzvg== 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=Q6qnmFUkJHhKDvOkH0AAIp6sTJnmBFf0jZl87kV7m1s=; b=nxnL+OJhktzd2RO+yiGXqAKl2ggbxkO3t+w175MIiuN8FXzkJrRa7xf14EIPJcuVZ6 9b/nKJv95n4N6ZorOLjyz/ak2Z29ZkrTRcN/dkMhNMVy84k5+A77Er7ujz2maJqaAq5g PqIz2xK+HFBGoXZxNHysZTrsqTZPhz9/d/i4BN93os1zhje9U529Xep83TXeZMFXzBA5 judrkJu5vRAZ9OE8GAM1MrX0K8GUShWoWzr2+tmAk3CdR7UAAn3aBVpcHONg9huBGaEz pFKLzBsiPRzdDqgSidi63rO/gdsW1sPX0pdTKpy84dZwGhxUAuLN8LknvSns9dHRImya RHDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NBoERCzx; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a9si3083502edy.599.2020.11.20.23.39.19; Fri, 20 Nov 2020 23:39:43 -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=@kernel.org header.s=default header.b=NBoERCzx; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727100AbgKUHfq (ORCPT + 99 others); Sat, 21 Nov 2020 02:35:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:57236 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbgKUHfp (ORCPT ); Sat, 21 Nov 2020 02:35:45 -0500 Received: from mail-oi1-f177.google.com (mail-oi1-f177.google.com [209.85.167.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id A43012224A; Sat, 21 Nov 2020 07:35:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605944144; bh=JIOyIP3Z1qYK7PEjNX1ygOHQ10RRXlMdlRpxuOVqaF4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=NBoERCzx0bOfs1Spi/qI4Jr4R9gR8nafDvLzNl5y954yhL+AaVOlArn46YJkANI7T 7abJYj5XFHRgl30rA/lbg/rqlMovYayapPUq/NdCriwpLmDqbHGPoFB/SLz/cLTFne 1lltJvXcAoTRU2aCkyn4SJsnZCZs0Biim543HgXo= Received: by mail-oi1-f177.google.com with SMTP id c80so13347823oib.2; Fri, 20 Nov 2020 23:35:44 -0800 (PST) X-Gm-Message-State: AOAM533XGJRslAI2T+3QpkpO+RvNRSTokXUTYapch7qFcAvRgtNw5gjL pF3r1REgFKT6pLRKz68m5wAup7lQ0Now8fP87ps= X-Received: by 2002:aca:d4d5:: with SMTP id l204mr7701517oig.174.1605944144026; Fri, 20 Nov 2020 23:35:44 -0800 (PST) MIME-Version: 1.0 References: <20201118220731.925424-1-samitolvanen@google.com> In-Reply-To: From: Ard Biesheuvel Date: Sat, 21 Nov 2020 08:35:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v7 00/17] Add support for Clang LTO To: Nick Desaulniers 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 Sat, 21 Nov 2020 at 00:53, Nick Desaulniers wrote: > > 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). > I don't think testing under KVM gives us more confidence or coverage than testing on bare metal. I was just pointing out that 'virtualized' is misleading, and if you test things under QEMU/x86 + TCG, it is better to be clear about this, and refer to it as 'under emulation'.