Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1945692pxb; Sat, 21 Nov 2020 03:47:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJy+1HaL39WZW3JyGDBxfXOJq1N/c4OaDZa79Ie4oqHbWtKY0LnV0XItlWZqE2X5r04E+h3U X-Received: by 2002:a17:906:d9d0:: with SMTP id qk16mr9806552ejb.420.1605959248679; Sat, 21 Nov 2020 03:47:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605959248; cv=none; d=google.com; s=arc-20160816; b=0aGJi0sPNAIp9Zqf7P+oWP6/5G+GNBNE2dV+mcFyi4QGiAsf5CwTf7iPN/QIWLRpQe Cs0lENvG1KmbUpUyNCoQvf4JsmKEoD9krMc9htT3LJioIFFRVCikvtbyA2YwSLvNbhOw STFdvA/euEH1hSXptAgYQCVeyo8eJocRqcLY1zrrMalljGxqwuuHAaZ29MZbMGd97Wel I12ggP+p7kKn1ac+KgKwHe3PMGk8gFxxxr/0+O/Iph1qkN4+Akk4xXmjR0HGlXeVhWcH kli4HmluxjXSL0ERo9DGia3fH95/hh82PvzR8cgj+jxgFjc+BjrSldbhyYu4zk7LP/NX dUNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:user-agent:references:in-reply-to :subject:cc:to:from:date:content-transfer-encoding:mime-version; bh=F2oz3YEyyGjJlNSmm5o2HWB4QKXzMXSCzIohxuO0Nlc=; b=wSuTdDTWPDkIVTHJe2anMMHA61+zcJHF7r0EztgAOJ1dR1E/I0ZoP9Jr38ai8eA3R/ s2uiqB3FXMwjRI7DyYIu9nokpNrN7AfSObwXSfOPhU5mApuo4O6N4aCoExnT/mN3Tcje 1tJZ/Nz1uM9sNukUB+TtAlyltzanSkB42mNESfyy4Iit3m8WzaTIusw3GkTeIciym/5Y 0922UIxlTJuLWa0nGWP20ZkU7WhdHgjZ6aA+GxkloI4rVrE0bJU5aGrk28PlZOP056A/ ISMLQ6+JolgqRBmVYZuOyGNsBxxMhLeDUkxqTfThKDyKnqp6IBvucubFGmiprOq2L35s x65Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qc4si3283172ejb.188.2020.11.21.03.46.29; Sat, 21 Nov 2020 03:47:28 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727486AbgKULko (ORCPT + 99 others); Sat, 21 Nov 2020 06:40:44 -0500 Received: from disco-boy.misterjones.org ([51.254.78.96]:37050 "EHLO disco-boy.misterjones.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727403AbgKULkn (ORCPT ); Sat, 21 Nov 2020 06:40:43 -0500 Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94) (envelope-from ) id 1kgRFo-00CVLU-BN; Sat, 21 Nov 2020 11:40:32 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 21 Nov 2020 11:40:32 +0000 From: Marc Zyngier To: Nick Desaulniers Cc: Ard Biesheuvel , linux-arch , Alistair Delva , Kees Cook , "Paul E. McKenney" , Kernel Hardening , Peter Zijlstra , Greg Kroah-Hartman , Masahiro Yamada , Linux Kbuild mailing list , PCI , LKML , Steven Rostedt , clang-built-linux , Sami Tolvanen , Josh Poimboeuf , Will Deacon , Linux ARM Subject: Re: [PATCH v7 00/17] Add support for Clang LTO In-Reply-To: References: <20201118220731.925424-1-samitolvanen@google.com> User-Agent: Roundcube Webmail/1.4.9 Message-ID: X-Sender: maz@misterjones.org X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: ndesaulniers@google.com, ardb@kernel.org, linux-arch@vger.kernel.org, adelva@google.com, keescook@chromium.org, paulmck@kernel.org, kernel-hardening@lists.openwall.com, peterz@infradead.org, gregkh@linuxfoundation.org, masahiroy@kernel.org, linux-kbuild@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, rostedt@goodmis.org, clang-built-linux@googlegroups.com, samitolvanen@google.com, jpoimboe@redhat.com, will@kernel.org, linux-arm-kernel@lists.infradead.org X-SA-Exim-Mail-From: maz@misterjones.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-11-20 23: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). If you are lucky enough to have an Android system booting at EL2, KVM should just works [1], though I haven't tried with this series. > We did experiment recently with RockPI's for aach64 KVM, IIRC; > I think Android is tricky as it still requires A64+A32/T32 chipsets, Which is about 100% of the Android systems at the moment (I don't think any of the asymmetric SoCs are in the wild yet). It doesn't really affect KVM anyway. M. [1] with the broken firmware gotchas that I believed to be erradicated 8 years ago, but are still prevalent in the Android world: laughable PSCI implementation, invalid CNTFRQ_EL0... -- Who you jivin' with that Cosmik Debris?