Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp888996pxu; Mon, 23 Nov 2020 06:42:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJwUG0vXkZU7cE8wbGZ6pG4zs7CTO9cJT76R0FIpU7WOOgUP/0M8G51n8C7rTHQcFS/QkVdq X-Received: by 2002:a17:906:26c6:: with SMTP id u6mr46011238ejc.349.1606142527154; Mon, 23 Nov 2020 06:42:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606142527; cv=none; d=google.com; s=arc-20160816; b=vWar7bdTKjnxQqKIgLP6kfQILQBO5t/szoAylwA0ZrUKh6w3mCLEX0HjfurzsIcfrc 51QYZ7vSOCl+uBcHFfX7VlajFD4OsMI+Q+OoxennylDQSFpVqzKKnPHdar5q5ucHc7Fw O0jeI3Y21cXad0+QnWkKVXAv3qoNu5Y8mX+CZsaoU0St2EkX8ulcVY2t8qMSvG4VKlmh Cu1YK9VuMiALtYxG9PNs1tu5wM7UUK6zfLJn8p17WpOWpowmndHISRrFcnScHhv9lksf Obc4guPr/299l+BcG6LjifTlsXMqbTOQP0Nso9MHB4imzVDMvK8o2A5PtzA3ulBGSMX7 wAVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IA/qfqyOklQJ79pqoG5f5P3U9Ipwq6yHC17vWE58tNA=; b=JFW0DyREjEUJI3ZmHvJ1U3c1MI2MvJC0cbXYk5YHHmaWDKnPER4pT7GervH3dOZJ1R hhrSL5EEXIpdSTobHmHfbX2EV0CGK0P3s4IrxsHgSut7MHZFHruOOlWFmCmEW7fiF6Sd GBlQXf3gzBk3dMuy3VcuOiI9bM8jy2DV25JhU9lyZVO8ns1lWbj1wAMx4q/cihyuhLaW dZ+rbSflyGsNcKzl2Wzrx4SBQkBLkEW1p/Yxokt+ZgyUNeKxNxJsRT9+vqxzi5+K+AIO 3IWjH+PcyKx8MCSwREf0p1MjWkIImMiaj8Wz9XWYkB+2Q33/bUq+4bgdU3VPhd1sjNn7 RF2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dDlg28P+; 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 w3si6554920ejj.208.2020.11.23.06.41.43; Mon, 23 Nov 2020 06:42:07 -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=dDlg28P+; 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 S1728972AbgKWOkB (ORCPT + 99 others); Mon, 23 Nov 2020 09:40:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728941AbgKWOkA (ORCPT ); Mon, 23 Nov 2020 09:40:00 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33696C061A4D for ; Mon, 23 Nov 2020 06:40:00 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id d142so18089728wmd.4 for ; Mon, 23 Nov 2020 06:40:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=IA/qfqyOklQJ79pqoG5f5P3U9Ipwq6yHC17vWE58tNA=; b=dDlg28P+Jh4WcUUlhAaq1JtPUuluHcfx65ApOfbVNU1dBa9Ao9nNN3oqUjtpo4n2RL bs55n7JhmPAMJu5SsUcgF5jAQujYSTMh3gIGsli/knyqFXfi7M7MHR6GJcRTuLW1hAKj oDL+sXKgB4ohn7ghXtJVILlso5bwoVTIprgaJOATeg0t+sdmnK259j0WIEcZaUoGG5zI nGNhrjlStyWjlCeEriRzGA6e4f5MMBCusLNYE6yOnGB6KBQe2TBnq8tpOpBVz7OwN/0P Xo/FufSf0lPAAyfrQoasy/ymA8ZPqtqL8xuT/eBCyPxzhzqP0QRTuj3y7WyhXwzCkLGN 5XPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=IA/qfqyOklQJ79pqoG5f5P3U9Ipwq6yHC17vWE58tNA=; b=Zotoj9Olfk/RpcJBphReSDhFpTPn4DOvvaO6PV1fdJuy1juOuN2m0cmHO4UVIGD8ID aIt3fILh250OnDJXWB1WZ5xQqJGlikocGAoyNMuc7YJdOnlx2auNazCB8pDY+UVXrB3h wCZVAn7wKDztDOLpx3XJTFpcOLzJ1nxlMTPbGCE+Cn2t0yRRdeid4zMfO/CgeIzCm/l5 MA3AHap7qhZXbCitohw5balB8vZjsRnzuM90zrv98T/Jh4rZbMyNblmUA+80PCPXB7Z4 1hhWVC96uYNF65/k83AifAN6E2F4D7jFlgZ5BjIwCa9F8MQjCIaNpJ4QN6nVRef6dCVl +k5w== X-Gm-Message-State: AOAM530bguWYYbtPMqva73y2LTC2PgPdJ37pYiiyewdBX6LVVeS9sB6N EtHA5ZQWN9cof47LOWZ1yQTfWQ== X-Received: by 2002:a7b:c157:: with SMTP id z23mr23864861wmi.70.1606142398827; Mon, 23 Nov 2020 06:39:58 -0800 (PST) Received: from google.com ([2a00:79e0:d:210:f693:9fff:fef4:a7ef]) by smtp.gmail.com with ESMTPSA id f17sm17235287wmh.10.2020.11.23.06.39.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Nov 2020 06:39:58 -0800 (PST) Date: Mon, 23 Nov 2020 14:39:54 +0000 From: Quentin Perret To: David Brazdil Cc: Catalin Marinas , Will Deacon , Marc Zyngier , James Morse , Julien Thierry , Suzuki K Poulose , Rob Herring , Frank Rowand , "moderated list:ARM64 PORT (AARCH64 ARCHITECTURE)" , open list , "open list:KERNEL VIRTUAL MACHINE FOR ARM64 (KVM/arm64)" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" , kernel-team@android.com, android-kvm@google.com Subject: Re: [RFC PATCH 13/27] KVM: arm64: Enable access to sanitized CPU features at EL2 Message-ID: <20201123143954.GA578849@google.com> References: <20201117181607.1761516-1-qperret@google.com> <20201117181607.1761516-14-qperret@google.com> <20201123132223.oohevce4izuoaqi3@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201123132223.oohevce4izuoaqi3@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Monday 23 Nov 2020 at 13:22:23 (+0000), David Brazdil wrote: > Could you help my understand why we need this? > * Why do we need PI routines in the first place? Would my series that fixes > relocations in hyp code remove the need? > * You added these aliases for the string routines because you were worried > somebody would change the implementation in arch/arm64/lib, right? But this > cache flush function is defined in hyp/nvhe. So why do we need to point to > the PI alias if we control the implementation? Right, in the specific case of the __flush_dcache_area() function none of the PI stuff is really needed I think. I did it this way to keep things as consistent as possible with the host-side implementation, but that is not required. I understand this can cause confusion, so yes, I'll simplify this for v2. Cheers, Quentin