Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1299374rda; Mon, 23 Oct 2023 08:26:50 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFjSVXrlAbUyUUgKhEE48VLziuNkl22EEnLvRLMPV5LKuedrj90eYkcjjyz3Jj4nfraJ3c5 X-Received: by 2002:a05:6a21:3e09:b0:16b:80f2:c234 with SMTP id bk9-20020a056a213e0900b0016b80f2c234mr10416860pzc.59.1698074810262; Mon, 23 Oct 2023 08:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698074810; cv=none; d=google.com; s=arc-20160816; b=gWkJxma1S4P+doYC5LukYWpeSDTjSvrbJBU5JkB8GdMLOSsiSyBIJjryCuIK0WDVPa cVYzFxqeUPkIwuls3Rss5CMBbSLIPsMK5liLIZHroj3s4D9W4jbDn/fPccbSIelAxQI+ C/btO0pss0+fk7s/1LSWqWz76E0c/E8aJjhYZt+9YusgRG7B6au4py87RKL0tT9BHyX0 zEVfO37aW0osc2XHE2nXlGtFx2qU7JYse4fsH+HNQwANcX+w8hNy7XSXBsvyw5riQCn5 sMJfuKLRvYMcYud+Wwxu/UyOwmFG/XOh3iGoglsxwyzsxVc8crvoH2ycuq2ktLm6nwTI UvFw== 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=5pB8P5MZI5SVEZkvNE+Ru1LBtul6eHQwWOFc8lfM1dc=; fh=R115E4X91sa+EM9CUee3+h/l/fX/SqqSSHmWqJWgRwc=; b=AEHAKGfzwU28UHDXB5+KhJ6RY1m4LSgM6DhqZCSRYhnxW7ljuThRIC3vss7XhmlbBw 6kCgo/ya4SfKHsNpo3rircg1Csv3Xmvbr6i6e5q+QPivuMhAkqUsuS1y2Kc8FKDxLZc6 +61ouevawbsHXa2Mv7YtSE0CJcuNf+cpUQ1xnObJETnbHE5cJ+5XJ7tFybICfhUonwHj 9ZS0e2JZOpKEnwL3RGmG3ZtUyfLzhPTBy0bvbyyHD1Saw7YHPZUtUVDLIw+0pWWEGmxh Zwa9s+3ffCCjfAuLc/yHTJ8JXWOowJkKpWfEZ4/Wgj6Si/a5iM27gQ8R1VluzsQnqucw 6jMw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YhvB1OOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id p17-20020a631e51000000b005859da6172bsi6512832pgm.727.2023.10.23.08.26.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:26:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=YhvB1OOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (Postfix) with ESMTP id B3EF48063105; Mon, 23 Oct 2023 08:26:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232844AbjJWP0g (ORCPT + 99 others); Mon, 23 Oct 2023 11:26:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45560 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232324AbjJWP0f (ORCPT ); Mon, 23 Oct 2023 11:26:35 -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 A44D2FD for ; Mon, 23 Oct 2023 08:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1698074748; 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=5pB8P5MZI5SVEZkvNE+Ru1LBtul6eHQwWOFc8lfM1dc=; b=YhvB1OOzmUAgBjHrISgcI2rvQgJ3tDw0I4NPp6XiOKcUjce+uQ8wVTCWFJXpA1zYLlVtwD x5tkakB7RLyso1Ecwq2yO5n20Stuy6V7m1kVgd0n4AyXVIBHRZqsTFr6c43IapmTq/SFRd fPR96zorCB8vhb7B4XBKc4VKjlPetTk= Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-557-FnP6EB3cOt62i8AK4zcbRQ-1; Mon, 23 Oct 2023 11:25:46 -0400 X-MC-Unique: FnP6EB3cOt62i8AK4zcbRQ-1 Received: by mail-ot1-f69.google.com with SMTP id 46e09a7af769-6ce37195375so5255045a34.0 for ; Mon, 23 Oct 2023 08:25:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698074745; x=1698679545; 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=5pB8P5MZI5SVEZkvNE+Ru1LBtul6eHQwWOFc8lfM1dc=; b=GKxQew5kBWV2fUcsgomUD/bHNHJebkTeU0+OoedgoX/QmNs6d3ejIZknzAajk2mgf5 jfiYR32Y+cG5q221MpWMsLIbFfMqzdUaouhQ87umXo50Ik3q4+lY+Sx5Py0fPbWaJKlA J5PRY8N3ZUc6kDt0sSr/w/YjiKsXj0arXzTtknkgdPVWpzE2+XoAc2K220Nx0yCNJ3si 1vhyePjPUH+eTtaPJ4T+ycFX2kDXwoGr5ChGGIaBgtcu0YlwgL+vXwtHgP5X3HFFGSSy /qbI9cBdv5uxl/HY1IQzQlG2kIukOJBpXp6Kz112g3gK4Zo6Dwx+Ml39WaY8frChg96d c7eA== X-Gm-Message-State: AOJu0Yx0HODFNbqfvTwAmVoZjidGH7BrxTJ/hkTIUz4VAwVHEzSlpt6M 8ogy4w61pGoROtYAgtJLXyFqBBYFuNQre0Tcq9ZDuqK8sI+e9VSVSetnYUHAzLbjHw1J1jgHbM2 lTwf/W5cFRSwN5e52DNnSjcbF X-Received: by 2002:a05:6830:13cc:b0:6bd:b29:85d3 with SMTP id e12-20020a05683013cc00b006bd0b2985d3mr9887448otq.24.1698074745363; Mon, 23 Oct 2023 08:25:45 -0700 (PDT) X-Received: by 2002:a05:6830:13cc:b0:6bd:b29:85d3 with SMTP id e12-20020a05683013cc00b006bd0b2985d3mr9887424otq.24.1698074745090; Mon, 23 Oct 2023 08:25:45 -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 fb8-20020ad44f08000000b0066d32666a20sm2951492qvb.71.2023.10.23.08.25.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:25:44 -0700 (PDT) Date: Mon, 23 Oct 2023 17:25:38 +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 Subject: Re: [PATCH v8 02/13] KVM: arm64: PMU: Set the default PMU for the guest before vCPU reset In-Reply-To: <20231020214053.2144305-3-rananta@google.com> Message-ID: <6dcbfe5b-2502-0f04-81dc-a4b19e231f06@redhat.com> References: <20231020214053.2144305-1-rananta@google.com> <20231020214053.2144305-3-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 pete.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 (pete.vger.email [0.0.0.0]); Mon, 23 Oct 2023 08:26:48 -0700 (PDT) On Fri, 20 Oct 2023, Raghavendra Rao Ananta wrote: > From: Reiji Watanabe > > The following patches will use the number of counters information > from the arm_pmu and use this to set the PMCR.N for the guest > during vCPU reset. However, since the guest is not associated > with any arm_pmu until userspace configures the vPMU device > attributes, and a reset can happen before this event, assign a > default PMU to the guest just before doing the reset. > > Signed-off-by: Reiji Watanabe > Signed-off-by: Raghavendra Rao Ananta Reviewed-by: Sebastian Ott