From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DEC7C6379D for ; Mon, 23 Nov 2020 14:40:31 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E1A8420888 for ; Mon, 23 Nov 2020 14:40:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="0UydUIlw"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=google.com header.i=@google.com header.b="dDlg28P+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E1A8420888 Authentication-Results: mail.kernel.org; dmarc=fail (p=reject dis=none) header.from=google.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=w00C/MS7NMupCufxXKGE/3H5j69dDCv5zv30QB9ycOA=; b=0UydUIlw81xfxjqhkOavl+Ccc RIQaFutVYUGs51x3qhrXxtT3q+fIUn2fUbtSqMwlWYpQ2nRBV+o1ieLK8yis7DtXqDzy//79z2s90 6tD4ggXwEBOcyLUM2BO9eCdbbzdJRMjKP1ClQk8ltihzzhw3+MZoHi1/MW5tVeFfNLn6u7RDL4c19 dw87evdJ0FtSWEvM8g09mQga+8T8ipdXXmWcw0sZd4JX+8bfaDag4Yg1bD9UH17t+/zHVFcnu+rHA aOt2VlYsHVg8SA+7JuLSQfl038Ecl35kQ61Lh3UHE0i2WDju1SSJNquD9ZAMOAv2NKzsKQuf1CJuj teuEk2FLw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1khD0d-000193-F0; Mon, 23 Nov 2020 14:40:03 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1khD0a-00018K-3o for linux-arm-kernel@lists.infradead.org; Mon, 23 Nov 2020 14:40:01 +0000 Received: by mail-wm1-x343.google.com with SMTP id x22so432914wmc.5 for ; Mon, 23 Nov 2020 06:39:59 -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=kQPtBJgHyajzSFYm6JxmAKa+KArTToS9ZJhuCQyjfsf2RZMKNAVeLNoL2ionW8rEa1 ZYJU+sISxC8Sl2IiUvdf+dJyeDywrkwEMAyLy1Islc3hguCklbct/IP9vDeB61EWmUFg 6drJqvMEayouRoMN3cO3hGwupx4SeAOrU+tbIgj2ZosEFoFD3j/i76mjwCHjpJ1x+pMT 7kwvLPWE+sJuGEQzvDOCmOfNYSg3XN/LQ+p41a2itFdXNuEskUC6Tfm2vLukHmOnxA/+ fmRN+HZ5OJi5FITnXBNS8C5W2utWDPuLqWM3YydKYoprjv37K+JpK+IODSkzxx/BFvHJ qDcA== X-Gm-Message-State: AOAM532tuHDcKxBGQ6U8OcWYjYqqcL+n/x9RNx7nEhd3HcIGYetLV2Z9 q8+LvC8O//k4hRBBMEF1bYBQbg== X-Google-Smtp-Source: ABdhPJzKkhqMWPHaBtD6XLWKHtSpwRHpjKsbcwlUiF4pqtF3mjusg9s7MoY8/c/6bW3rqWv2KFWqkg== 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 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-Disposition: inline In-Reply-To: <20201123132223.oohevce4izuoaqi3@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201123_094000_665762_6306D675 X-CRM114-Status: GOOD ( 16.39 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE" , kernel-team@android.com, Frank Rowand , Suzuki K Poulose , android-kvm@google.com, Catalin Marinas , open list , Rob Herring , James Morse , "moderated list:ARM64 PORT \(AARCH64 ARCHITECTURE\)" , Marc Zyngier , Will Deacon , "open list:KERNEL VIRTUAL MACHINE FOR ARM64 \(KVM/arm64\)" , Julien Thierry Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel