Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1299101rda; Mon, 23 Oct 2023 08:26:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEjy527fUlGRyq9QJ0eRNCcgDF3fMb9qcdEt20cLwQRRaUUq9KAC4WURMNzdrfL8RydF5iQ X-Received: by 2002:a17:90b:4a0a:b0:27d:3c11:3610 with SMTP id kk10-20020a17090b4a0a00b0027d3c113610mr6197278pjb.33.1698074777792; Mon, 23 Oct 2023 08:26:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698074777; cv=none; d=google.com; s=arc-20160816; b=H/KxdwFW3W4s5rGm98B+KHbBgyk2jT5ZtkvYHngjTQpuEUFtavXbkosEtH2CU7h9Cs N8AdiSrCeFYqYk2janyc6Shvtf4b+B21tXMGha+Zp0ZK5OLhi5fEVx3iIfug3U/1VMrR AN80Wx9IfVbZCw+HUcdqHvF2VnqRaINIOLk4mWirsFM195UJEA81xRzbBHJ1yvNRr3sZ UaN8lErsMNwmAbzD6Pds3HLk5AuCJ/SPbxZrry4N2LXEsQver0QMlJJCho8pW2SXivkS iW/PShg0xDRwllwHCsV2ZcsH8+Ty5GQNTHzpqUAjoeF+UJKI9vJwxYT1e8FM/Q5tb0Fb mgZg== 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=YrnXzVdFyG8cEywC86c0X/I901FAAiWZF1AhPDWq6c4=; fh=TwhGEYeS9Gvt6xYP9+fYQVB4A5OdZ+VZ5ESL5t+nqp4=; b=fGq8zcV6+h35mHvxtVRsA3LzctY7uukScmb8d9XEa/BzoAEvqhEfV4ZY+A89G8AsdS aS+WEYcbt2veVX5T3jvtsZo1VJMrHI4s9BETRqH+tzkPpLpIhrYx6NJ2zJ1HA0c2kssk YouKdhpg+GwWWAD45130q36Pp9noL9HpBPs9Gbry6+9JvfSp3AC1Js1eY7OccDde/3Xl HvtQL0xgEz4r5e7sOKq2jet4ed14vwdNU6/qLCvqcqtRYfqoRxCkp/ZIZezTDqyaIVtN akqsvz3/ULYxGbu3BurUNQD43gD4FvoMyqTPoKBCuzKgyBjY5D4Hka546jJHsvzjzAC0 O0Yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e1VLjgJr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id m13-20020a17090a34cd00b002774cdc919csi8762022pjf.176.2023.10.23.08.26.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:26:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=e1VLjgJr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 466A4805EACB; Mon, 23 Oct 2023 08:26:15 -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 S232299AbjJWPZ4 (ORCPT + 99 others); Mon, 23 Oct 2023 11:25:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231742AbjJWPZy (ORCPT ); Mon, 23 Oct 2023 11:25:54 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7E1DDD for ; Mon, 23 Oct 2023 08:25:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698074700; 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=YrnXzVdFyG8cEywC86c0X/I901FAAiWZF1AhPDWq6c4=; b=e1VLjgJrjQyHcMqPO5co2YgWZ/985U0TQ4jAZSj9JIoNYXEojQQaZrcUJLq3MXb8LIxJ04 Op3X1FkNg0uK+NJ9ORI9fi3NP0rXGYDUJfvwJT7Mj4t2pPlnZr+pjZJvQRVF5+06hJzEld muossw6JshtFhOr5R4INWDXhwKjzMJI= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-632-5bP95jUVPEKazwYB_Cb72Q-1; Mon, 23 Oct 2023 11:24:42 -0400 X-MC-Unique: 5bP95jUVPEKazwYB_Cb72Q-1 Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-778ac2308e6so451044385a.3 for ; Mon, 23 Oct 2023 08:24:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698074682; x=1698679482; 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=YrnXzVdFyG8cEywC86c0X/I901FAAiWZF1AhPDWq6c4=; b=eGyeL8aSZwCV2albYL3l2LJgumhiW+CJOZac+g/OPCt+qkcrOFugEJ0Rx7BXbsVMPo Xw4H+IPGGikRZG/BYYkCb+2PIo5iOG7c7CgDtdCW0m//SEG4C177mRuVnmsQs+tmqUpI g192kZfQyJGwC2cKJcADXSExcdB1k7OKVj+ySQF90HtsSGa7Jyx9AEGy7wzMnfZHOyza PCJgnuL1mEsLkLU+scEN++boyqUYaUUynZ3F6cx18aM9m7t80HTbaeUPQRq47ClGYdtt ExjGcthK1WOoptTWcDWKLp21Sd20qR9EjV8BTHHoLM50uPutNcyA8iGoOnEersMJ0qZy vEiQ== X-Gm-Message-State: AOJu0YymHVW3nz9gTML0cORWsV/pWZ1MFkYC0pz+qv0VFxFr+FwbRglY 4vQ58KfH9RYo5aBhLijKiuFZ7CXJHDmcxJYSGN12I+jtx/lJK7AKy3a4EF+ZjvYIx5mxJ+MspvK GFs6pVjoxyUsMgyRS1HuhbitD X-Received: by 2002:a05:620a:2909:b0:779:db14:53bd with SMTP id m9-20020a05620a290900b00779db1453bdmr3606665qkp.32.1698074682199; Mon, 23 Oct 2023 08:24:42 -0700 (PDT) X-Received: by 2002:a05:620a:2909:b0:779:db14:53bd with SMTP id m9-20020a05620a290900b00779db1453bdmr3606648qkp.32.1698074682007; Mon, 23 Oct 2023 08:24:42 -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 w20-20020a05620a149400b0076cbcf8ad3bsm2757613qkj.55.2023.10.23.08.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:24:41 -0700 (PDT) Date: Mon, 23 Oct 2023 17:24:35 +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 01/13] KVM: arm64: PMU: Introduce helpers to set the guest's PMU In-Reply-To: <20231020214053.2144305-2-rananta@google.com> Message-ID: References: <20231020214053.2144305-1-rananta@google.com> <20231020214053.2144305-2-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 08:26:15 -0700 (PDT) On Fri, 20 Oct 2023, Raghavendra Rao Ananta wrote: > From: Reiji Watanabe > > Introduce new helper functions to set the guest's PMU > (kvm->arch.arm_pmu) either to a default probed instance or to a > caller requested one, and use it when the guest's PMU needs to > be set. These helpers will make it easier for the following > patches to modify the relevant code. > > No functional change intended. > > Signed-off-by: Reiji Watanabe > Signed-off-by: Raghavendra Rao Ananta > Reviewed-by: Eric Auger Reviewed-by: Sebastian Ott