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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACB0FC001E0 for ; Mon, 23 Oct 2023 15:25:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232874AbjJWPZ6 (ORCPT ); Mon, 23 Oct 2023 11:25:58 -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-Google-Smtp-Source: AGHT+IE0oXNOI2bZ0Q7EOH0xkSQPuJV1uT5Nv9oLcwOjU3v7FEChoNMD+vNwx5JP/j0OgNyb9geOCQ== 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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