Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2263323pxb; Fri, 5 Mar 2021 11:04:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyPN3TlxobnaCOdn+SvyQ9uO5xnCBmyNRLOChE1ABz7gghVyrZgf4XXqxGvw3x5w5pPE7bD X-Received: by 2002:aa7:da0f:: with SMTP id r15mr10409538eds.111.1614971047973; Fri, 05 Mar 2021 11:04:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614971047; cv=none; d=google.com; s=arc-20160816; b=Un4lYaSeEl5Z/uQRmOwYLvhYf33wIvhqwiTG0ARbi1OqsFa1QFfvIPYi2PFszQQa5N HQuadqcxekSaJD+jorhAJIHxqUuOUFWrpsHMNpynCpuv+dw5ONVT6Bm2gjhY67QgIR0A A3tyaNMXCkZ91d7uLT29qe2BFKylYDtyiaEe6ymWrsgO98eyLfQUhRqWNd7M/V8MDdCa EZtRUNAtfBJ+ZHRpzQsEyA+N3TfVI/ow1/sjGu3UqMNGPyTK3H2NeC2dbwh6eoYXGkjd EVc2a5xdAD2Y66l1JfhbNnndKoiCguM4AKWLiZEetY1i/u4aPG5xqc3Cy5lZrI5SVog2 LQzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1FWyvsKBKK0TQX+Lq/1qoNwlowUepJWM+Dg3gosFW5U=; b=zoW7OJUYzSDIW7VTe3qQXMGYm9eTpUyOdcKQOAUxN2t4PY1V79b8z0hQQWAkxO8+5R Cl8Q0AJ4wQc37yscA2KG7JU2a8mwigBk3BM1jGLBnZsb1s8bfsFcCm9KhhzQGY08dPjl 0tzefsOaKQSmcDgdIdfuoxNQZW0oWXZ0QZNS3u6snIrntORSjhos3dgxBaP6trZ65I/K AkI1auH3T2s3qjsAZrMMiL2l17z6IkMfz0kV6u1EkdAuYsgwS/1QqeWbV0OkL0DBU3Qr xAQG2KfY6qZaaRLTwhM1ukvMQFVmGVwww8MTmYC7Oi6Yzd66EUhokqR1noJAClNWQ42Y jROQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=c0cXkUhf; 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 a73si1978977edf.23.2021.03.05.11.03.45; Fri, 05 Mar 2021 11:04: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=@kernel.org header.s=k20201202 header.b=c0cXkUhf; 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 S229597AbhCETCe (ORCPT + 99 others); Fri, 5 Mar 2021 14:02:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:32768 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbhCETCM (ORCPT ); Fri, 5 Mar 2021 14:02:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 43CA96509A; Fri, 5 Mar 2021 19:02:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1614970932; bh=+HY4tyg5MEsNmrtevimpEfoDy4PsjuAzV42+G/FLMVQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c0cXkUhfqGyQIPH14jJKrVOWqS+nkTdjAw7+FncqA/3JiGVSK+/buLmQR5CPX0Lkh dCW7dcorA8Yx48N9S2h9g8R6GdPZXZYvGcN7K0Y5c7YEU2XCqb+THvNf39KKmGJPvg 7SlguW8KOncXG2JrcnBGVpunFHsss2GoyrMFKsQFZP5J3xQ2z4EDXBStFAxnJPxUzg aey5TwsRQzPpuo0eVRH2m/iUb2g8ydUomIz9TElX1hpK5ZM3qVToNjiQU/XknJ3DEC KaxOe0sr57aCvtJqjnsfjIielTW4HTsR6GLfySdzgt5AgvwD20BCAzORpz6fubBLwx lvJZ9Wwx+U9Wg== Date: Fri, 5 Mar 2021 19:02:06 +0000 From: Will Deacon To: Quentin Perret Cc: catalin.marinas@arm.com, maz@kernel.org, james.morse@arm.com, julien.thierry.kdev@gmail.com, suzuki.poulose@arm.com, android-kvm@google.com, linux-kernel@vger.kernel.org, kernel-team@android.com, kvmarm@lists.cs.columbia.edu, linux-arm-kernel@lists.infradead.org, tabba@google.com, mark.rutland@arm.com, dbrazdil@google.com, mate.toth-pal@arm.com, seanjc@google.com, robh+dt@kernel.org Subject: Re: [PATCH v3 31/32] KVM: arm64: Disable PMU support in protected mode Message-ID: <20210305190205.GA23633@willie-the-truck> References: <20210302150002.3685113-1-qperret@google.com> <20210302150002.3685113-32-qperret@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210302150002.3685113-32-qperret@google.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 02, 2021 at 03:00:01PM +0000, Quentin Perret wrote: > The host currently writes directly in EL2 per-CPU data sections from > the PMU code when running in nVHE. In preparation for unmapping the EL2 > sections from the host stage 2, disable PMU support in protected mode as > we currently do not have a use-case for it. > > Signed-off-by: Quentin Perret > --- > arch/arm64/kvm/perf.c | 3 ++- > arch/arm64/kvm/pmu.c | 8 ++++---- > 2 files changed, 6 insertions(+), 5 deletions(-) Acked-by: Will Deacon Will