Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp698244rdb; Thu, 22 Feb 2024 17:39:22 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUaR07ocM1/zPW0AxZ3SHk4HrIws5xaP63ZQZU7Ih69+vUXHsJV2sqMUcSGc6DuTtvBOCUb4lxtN9mdy42cvPtFs7Ng08XVAJxOT0LQFw== X-Google-Smtp-Source: AGHT+IHA6yRqmBlVWN7rA6AQcX5gaCYt+C1PBY6TI8lWk96RHYGWZKk7TloftKrBdCoMHck/Y5Iz X-Received: by 2002:a05:622a:309:b0:42e:58a0:3513 with SMTP id q9-20020a05622a030900b0042e58a03513mr952743qtw.67.1708652362024; Thu, 22 Feb 2024 17:39:22 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708652362; cv=pass; d=google.com; s=arc-20160816; b=qo2DCnehHY7a0lIhB99if8UwqCtq7jAIM8/17YfuXUIQLqZW9j1UPQFB5nvWU/dO/4 rSbM+2T8DPVf4UgLzRGcXbyDI4qWGvkHpm5ljG1EBoK1dp5pGiauToVNvcM1sKndfKS1 tR+hvhm1kMzwfZOM19z+0BNZhh9RPmBtw6AAbDZcZczTnPCzktT9QVmGTSs0lc5alwde KppN2Ex1femeujYx8o4xz5TQ0DOSzpZTPHQZbA2BaEbl2I7+wxyXIOZ5YsuVmiGv9IKX H3Ji0eF5TT5rEWJFKglr426R1+X/iMobCK9aVJPtERKBkOaQ+VyfVkTP+Ayp5WSQgNWY A9hQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=LislQMo+ty6pik6/y36wdyvKCsWJplgKdipRzrWuMSw=; fh=0rlnoqNMayEYM8/LSm3U+uGRYTnCgww14j0BGyVxDZw=; b=PhCTwLmrtcaZJVwWzrQ8ZE6tn7sgHj+tPAKpYTbJNir9f0Y1v1+SY8z66sc+GsVCMN fRjXoE8dq0iRWMqN+OH9b9+GyyU8d6op9nfB//QCprZ01AzhyNOR09InQ0kDR/G8Srsl VM87b86IVf3ijctq/0o6e0piFO5whn6M4hQ61wUWUXdMk1gytphoInWJPgslYh5mOsLx IIwVb87DFmQ+ydAwScWg8hHWUOkXgCz3dvB8qedYwSuQroBy6TrnfjsU+KcACUVwWt9p kuLctS5GRD/lQ9IW1YZ+ujPjFtT5lVD1FBtBqIDKUqSzXwal1OtV7IsyTF0b6YkDDbsf jObw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mMoszKoS; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-77641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id r5-20020ac85c85000000b0042e4733f5a3si3130796qta.216.2024.02.22.17.39.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 17:39:22 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=mMoszKoS; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-77641-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77641-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C3E461C2297F for ; Fri, 23 Feb 2024 01:39:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0EA2613FFC; Fri, 23 Feb 2024 01:36:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="mMoszKoS" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 001F31427F for ; Fri, 23 Feb 2024 01:36:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708652215; cv=none; b=m2NZYrwh1Utt+OlD0154aqB7NNNkjBlM7hH3X/C/QfOhhIuGIZ7RgBE/Gt2LLt7XdW3X5vyIlUZ8waTrGR1TSxszuDSPEAbIGaWk8jkE1bJimhWKylEzkKq7O8Zew1OZMpOhYm9209tdiN9wMwn0rhbKDsKRoL6RZtVAdXTCgxQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708652215; c=relaxed/simple; bh=fI3ejT6Y2Z8uFS5y83UfDEJ92PnySLL/joA3XMKsaaI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=mOAfNV0NOj5tkX5sRn4VH8z9jeiUZT4sLHqS6nVg//ZrB0he6myGFF43CFdPwghq63JBfvTQ0R2Xj/EKZJQPqtqOWLScHfAlFpb7McXkF2hwgQ2HR46IqjNeAlkb6aC7FWrG0gB9oeebqvk8auwBsFfcARpS/BYh5CGuzC9r09w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=mMoszKoS; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-5d8bff2b792so276440a12.1 for ; Thu, 22 Feb 2024 17:36:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708652213; x=1709257013; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=LislQMo+ty6pik6/y36wdyvKCsWJplgKdipRzrWuMSw=; b=mMoszKoSnwz3CuPc0dth9LHEDisi3RhwUk8o0B7zUKW1HreDHp/+jfZ5bb6CMvyC6X Vge7/gq3q1ghOLeFQneJ6/yMiTt7pOBSg54tmMIIrDoWFeDJry1qkebtx4Ibfs5VAbzQ V12n5uwsuBr2IwLgX46GSrt0a74M8rxloj0/oup8KLaxRW4J8S5pCQFwYq0UJfhomFfd LLsR+HO07qmJAvIaT3he6nAmtkDU67IQloEW+PkzG8msBusZmiHaIHxxtAZaUHsPSVZ+ g7QHY/Eo+Tvl04cxKrVv1PIyxDEsx007oP7/royA7CEC1iVDmat9NII5CHwqFXPWeAKq mjZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708652213; x=1709257013; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=LislQMo+ty6pik6/y36wdyvKCsWJplgKdipRzrWuMSw=; b=rRd6gTEsgI+XHS0mhmIzZdEXrijSMtX54z7zEP9r5TWjkxQ0d6dToP+fPpkg3YqdtK TAZELSNkAixn94SC/xjAq9dVFj7h65nXuXTm/9np3yZ7ytm4b0oeC4zOnENwajOZfY3w Cb2Dz4qQmHYnUJ+YYUXtafedq/OZ/JL1MUSfrh9pVWgbqlHXNWfQpn2/BM5PV7E8qJ56 mHHitPPz4wcV9ftVgdrRVv4NfbKjG7NvyLajTW/xU0iwcDLhnyTmZLYCrldxaHAje+GL nwhjQnQFY6C5L91WEWrRMJE15MXvhr60XqRWBo6vQ7/00skmhzfU5IE82L/AloZ3BS4i rR2Q== X-Forwarded-Encrypted: i=1; AJvYcCXcQKbl7+TEYp/TjVF7YmIoO5aomr3UJKDsmVdM97YLzzLb0CYIfWNbDysUWBYFgy7bYG03C2Q8ar3Ct5UfGCHmDOa1Z0OdlpEdBr0o X-Gm-Message-State: AOJu0YwNaKpUy6TBhb13Lupz/EIoxm9QwJhbuJYNN5EABohBOFyEIauq k62+nyr7ZtbhW9gMpEqMWZnFEhF/vymLcAZDVVpDPCc3VO+gzMhYA22Un8F06CiY6+LpgyNJc4z 7OA== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6a02:996:b0:5dc:8f83:ca2e with SMTP id cl22-20020a056a02099600b005dc8f83ca2emr1444pgb.0.1708652213216; Thu, 22 Feb 2024 17:36:53 -0800 (PST) Date: Thu, 22 Feb 2024 17:35:50 -0800 In-Reply-To: <20240218043003.2424683-1-dapeng1.mi@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240218043003.2424683-1-dapeng1.mi@linux.intel.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <170853139870.2603264.8863273316877757640.b4-ty@google.com> Subject: Re: [Patch v2] KVM: selftests: Test top-down slots event From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini , Dapeng Mi Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Kan Liang , Jim Mattson , Jinrong Liang , Aaron Lewis , Dapeng Mi Content-Type: text/plain; charset="utf-8" On Sun, 18 Feb 2024 12:30:03 +0800, Dapeng Mi wrote: > Although the fixed counter 3 and its exclusive pseudo slots event are > not supported by KVM yet, the architectural slots event is supported by > KVM and can be programed on any GP counter. Thus add validation for this > architectural slots event. > > Top-down slots event "counts the total number of available slots for an > unhalted logical processor, and increments by machine-width of the > narrowest pipeline as employed by the Top-down Microarchitecture > Analysis method." > > [...] Applied to kvm-x86 pmu, with a very slight tweak to the shortlog. Thanks a ton for the verbose changelog! [1/1] KVM: selftests: Test top-down slots event in x86's pmu_counters_test https://github.com/kvm-x86/linux/commit/4a447b135e45 -- https://github.com/kvm-x86/linux/tree/next