Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1333363rda; Mon, 23 Oct 2023 09:20:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFAghaAwcG+pmYy777zkKp7QHbGKs9inMQPJEulDBoFQpt+35AnuulQobiJ2layM8LXbD0d X-Received: by 2002:a05:6358:41b:b0:168:eb96:f495 with SMTP id 27-20020a056358041b00b00168eb96f495mr862476rwd.16.1698078057450; Mon, 23 Oct 2023 09:20:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698078057; cv=none; d=google.com; s=arc-20160816; b=BsJGI9ibL1n28bh6Ypaslh3gow9k4WOeOFbv6rjd3AfBd992VLq4m2wlQwGfa0gpKj ZlHg6ltl9yS3q6mz6ns3oeA5Pp4gFrBj3GAexGiIww80wTN943txRvhoYHtJEHB/yCIf rs00Y7zfQflLfiMPNTBDlUxr9dkiIGIwWv9hEOyjHeaerdRQrooqC/mCIKvcwMD+0F83 99aCS7brxFHcYCwzAZX5gtMKtXkIllzgs3aNkC5Uiy5f0OLjzCZAoOyc8QOYkUkcdwsM 0Se+OechsfQleuYrGfZb2Z5l/sbYFK1KaHGS5wCEEIRgCK314ylvknJI1kq/t/g+ce3B mL/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=Ut5czDDze7j+1Ijghpb8c61xr1AzZHB+GaM5+Au8mg8=; fh=TwhGEYeS9Gvt6xYP9+fYQVB4A5OdZ+VZ5ESL5t+nqp4=; b=mOh13UfZgTFGaQ+9duvFhzLQ9ZyrClPooo9KkG1PaqQA/boq67hYO7ql2m05GqlZQh bSGT5cKhHRWwxihq9okqAg+ZZwNV8w+kiohFheJUphGntvjXgvN46vMQZlpTycOnnkKh q+UeOQLXKLzlPsWtn6nVlsq6y8RfIF4pxm5tlA+XFo2M6h4CvXQbV0BZ88j9OM8gx82X cyUeyjwG/5478tOCzffAABCR2soLUG1TcduNXIp1lM4pZHt3ZsufH1H01YnFteBvWRMv fI4vZWaVRKxJ2XFUaLaSVzYzx/Ke9gmzML6iRt7PsSP41oGqAJuI+aZGYJQnVwOmteMl yN3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IlOlxfdP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id j184-20020a638bc1000000b0054fbd904b6dsi6576357pge.500.2023.10.23.09.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:20:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IlOlxfdP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 51F5A807C861; Mon, 23 Oct 2023 09:20:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233537AbjJWQUM (ORCPT + 99 others); Mon, 23 Oct 2023 12:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233630AbjJWQT4 (ORCPT ); Mon, 23 Oct 2023 12:19:56 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE5B72118 for ; Mon, 23 Oct 2023 09:18:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698077922; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Ut5czDDze7j+1Ijghpb8c61xr1AzZHB+GaM5+Au8mg8=; b=IlOlxfdP7LrG7oi3w1QX1oMLa3S6BnzjrqX3acHxKXW0lOZqOmWXYcM8eEt4Y+Tm/k0/Nt RRfRxNURh3HGlN9hma/8QgJn5mV/OIxWmJ6H9Ic8NcIXTwLa1ez6/arWQrHv1NSRxZVcNk Lzqn9RuCoSeFSD0c8CKclH2IsRzALFE= Received: from mail-vs1-f69.google.com (mail-vs1-f69.google.com [209.85.217.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-33-cAttNStIOn2a7jFxNM7eqg-1; Mon, 23 Oct 2023 12:18:39 -0400 X-MC-Unique: cAttNStIOn2a7jFxNM7eqg-1 Received: by mail-vs1-f69.google.com with SMTP id ada2fe7eead31-457cd8cf4e6so1258622137.3 for ; Mon, 23 Oct 2023 09:18:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698077918; x=1698682718; h=mime-version:references:message-id:in-reply-to:subject:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ut5czDDze7j+1Ijghpb8c61xr1AzZHB+GaM5+Au8mg8=; b=RWBVOYcCxfQ4i7nn/q9iLNDmInYnszLAAISYkUsiB1LvPqnxmT1COWut+cNSoqjjD+ POZI1aHYOg3vzp3FRFfsEwkuQivmgqnU7m/dipNnv3zoGPzErYnhCAs6bZtBbQ2AferG hlYkwHnZW18kbzMp9ax1pr3T6YhgYL21hZyWHH/SCrCKh7Izm/EBbE+JJWgHJFPot5wf 3YORaB7pG1jYEPDagDzJEuvXm/xhNmzPmdtscWDUG1DaSUeMtrUm6udXeNaQEA4FEkYF rTv0XjZbF0hiFCMHSlNXFQNgZ81EmkHTKPFx/a+MoEl8cryRWTEtTRrRcuij010//0Cw f4+w== X-Gm-Message-State: AOJu0YxJMJBaR0yDDayUlZvFIy6XxVAz9gV6zrmKMMZa4C/CDlfiApcl gF/vVdn6BztqqYGmduci0wMRlfwj1HLykB2dR7hwqVCOlzB/8vx7hID4Wrx6TaotDLmYMhdBnqP jP83ChlSVJRYbVkRz2ElItYqE X-Received: by 2002:a67:c10e:0:b0:457:c9d2:4624 with SMTP id d14-20020a67c10e000000b00457c9d24624mr8598326vsj.31.1698077918691; Mon, 23 Oct 2023 09:18:38 -0700 (PDT) X-Received: by 2002:a67:c10e:0:b0:457:c9d2:4624 with SMTP id d14-20020a67c10e000000b00457c9d24624mr8598309vsj.31.1698077918408; Mon, 23 Oct 2023 09:18:38 -0700 (PDT) Received: from rh (p200300c93f0047001ec25c15da4a4a7b.dip0.t-ipconnect.de. [2003:c9:3f00:4700:1ec2:5c15:da4a:4a7b]) by smtp.gmail.com with ESMTPSA id d9-20020a0cf0c9000000b0066d12d1351fsm2925982qvl.143.2023.10.23.09.18.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 09:18:38 -0700 (PDT) Date: Mon, 23 Oct 2023 18:18:32 +0200 (CEST) From: Sebastian Ott To: Raghavendra Rao Ananta cc: Oliver Upton , Marc Zyngier , Alexandru Elisei , James Morse , Suzuki K Poulose , Paolo Bonzini , Zenghui Yu , Shaoqin Huang , Jing Zhang , Reiji Watanabe , Colton Lewis , linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Eric Auger Subject: Re: [PATCH v8 03/13] KVM: arm64: PMU: Add a helper to read a vCPU's PMCR_EL0 In-Reply-To: <20231020214053.2144305-4-rananta@google.com> Message-ID: <07c09e70-a337-aa41-f022-7ea43be2c0c0@redhat.com> References: <20231020214053.2144305-1-rananta@google.com> <20231020214053.2144305-4-rananta@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Mon, 23 Oct 2023 09:20:28 -0700 (PDT) On Fri, 20 Oct 2023, Raghavendra Rao Ananta wrote: > From: Reiji Watanabe > > Add a helper to read a vCPU's PMCR_EL0, and use it whenever KVM > reads a vCPU's PMCR_EL0. > > Currently, the PMCR_EL0 value is tracked per vCPU. The following > patches will make (only) PMCR_EL0.N track per guest. Having the > new helper will be useful to combine the PMCR_EL0.N field > (tracked per guest) and the other fields (tracked per vCPU) > to provide the value of PMCR_EL0. > > No functional change intended. > > Signed-off-by: Reiji Watanabe > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Eric Auger Reviewed-by: Sebastian Ott