Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp163381rwd; Wed, 24 May 2023 16:03:07 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7m9G7/guc9nLK42/I10c7uhw3lG2pOr4uiy2Cf4rgAR/p6cIZZbMyACAJKnWcU9cRV1NaA X-Received: by 2002:a17:902:c40d:b0:1ac:66c4:6071 with SMTP id k13-20020a170902c40d00b001ac66c46071mr21275143plk.57.1684969386799; Wed, 24 May 2023 16:03:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684969386; cv=none; d=google.com; s=arc-20160816; b=CTgWa+f061GSylLy08O3U4MJbx9uXmbIdL5gQgoBJRVbvpD+ole8vFRnI3Zv43e5s3 fHazuv1VMh2wTWn05cWLhkbHjWSt4w8771i58efxCLnKzevIAzN6YgXiraEg/c+qDZb6 u+XDPPs0sxqf+r27hz/R42mP8831XJnphZe04VFd+1dS1+FvlLZQN3zNtYjBy/4+R20q +FQxwj6TbrY2AdDjXTko+lhciws7QxYGNfYwE6grYr7yKRIVrVunWwF//+Nv1GA2QWs1 0EBT+uw+fSCi3HnMhCdbQjYgAtwF/XVui9SeJMUFWKHn7JwQvsfpBIogJV+O/gsV8Eam ADtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=x0WpqwanSmBKlqB/KYTJIHjiwaT4vo3S6eGEr+EhUoc=; b=KsgNv3Iqg18puccyTyfQ68VgjHf3RgC6ctFvyU5hO/HSFGrsoQ4iYyUeBg1mi21hyg oi/WVzjomP9f2Qo7RmP2hO3MJw/WTaJ7UD3+ADVmi7vmnhO3VVRNNgw6vQKOWTyADs2x XrV/FDBvV4y5xqBboXhMwPR1XWCdkFCBAfIbikEyOUkIVKUAUa464kezIu+VSXw/Eci8 x9DqCrCSP9YtB5n7hgZzi7MGDsIqeHcUoXjWilqL7OYZa2Ooo1uIzwuUxi9JATc7PAF5 oaiwlW4nyoigkwpsd+QYcPFnWwmvpc7tWlZRI526OJqte6pkvwH06qJIppu8v4bUI7u2 rRjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0iFOfuXS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a170902e5cd00b001a9581bfb91si9469408plf.543.2023.05.24.16.02.50; Wed, 24 May 2023 16:03:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=0iFOfuXS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238327AbjEXWx7 (ORCPT + 99 others); Wed, 24 May 2023 18:53:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230423AbjEXWx6 (ORCPT ); Wed, 24 May 2023 18:53:58 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB32BA9 for ; Wed, 24 May 2023 15:53:56 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id 98e67ed59e1d1-2532da9e45bso211188a91.0 for ; Wed, 24 May 2023 15:53:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1684968836; x=1687560836; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=x0WpqwanSmBKlqB/KYTJIHjiwaT4vo3S6eGEr+EhUoc=; b=0iFOfuXS06ChvMu47Nq+dNrsb1rcuvQm6ggloE98nwK6hu3HaudExnpKEc/CmuypvT VOg1Rw2c42mHnY0GBjBYW4SUTX1e86gIq+ZX0kdZvkVFRQCW65SN+2DvGcYYgg4fjh5c Mdlql7CzDEVVHmRYxd95Jiuuw+2zTNRwPuHpnvUUJO5tzsOEwzmA4uLbxLnUJ4iamf5e 9JBSHoHtLSnO1Bx929g8Fxa1DQuhFCwcAAmQqTnde6AUSchsFYkIE2T8X9oJ0D0MF2cR tHu564hkvrDrqLveQCTXcZoJJWLeXLsDulCp9WJoROiQOCpXkfMJ8ddfhDbIMMYHL7Ar XIjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684968836; x=1687560836; 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=x0WpqwanSmBKlqB/KYTJIHjiwaT4vo3S6eGEr+EhUoc=; b=SCEJDu0Y6inmHpE089MJUsCyxVpMHhgAUmDddM7CJpMX8kDyxvXbo4kG1Vzckb70zL fxbAlMrRabtyLjFa/HVnS1L/8d2wDQjPRw9N016Axla2euayn9/4rBb8pZlvrCXR6WX6 vTQBdNV/WU6xxMj03/5P2bvfep4ans2Ly1rqEP6/xayZYkKGQlbSWLEQ17x+q7heB4vC BbBrJoKac0sceP99tBXQe+onQ7UaRIQSR9mc4hyvLt0V2BXfMqIxLIThF89uSTtbAATG IaQ14q0Yl9OnJsEULxqpZy2r+M/xAkVNJLbTQRxj9rjdhcTSG5b9X2BR6yDlBGqK+gog rvzA== X-Gm-Message-State: AC+VfDymINCELhOu61jCvYCusyDXYLOWDowK8TWXaOCBmIOwCGi4gXT/ JFKuYfMUp7q7oOnNaQY4b90Tuay9Wws= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:e642:b0:23d:30a:692b with SMTP id ep2-20020a17090ae64200b0023d030a692bmr216909pjb.4.1684968836446; Wed, 24 May 2023 15:53:56 -0700 (PDT) Date: Wed, 24 May 2023 15:53:55 -0700 In-Reply-To: <20230323072714.82289-1-likexu@tencent.com> Mime-Version: 1.0 References: <20230323072714.82289-1-likexu@tencent.com> Message-ID: Subject: Re: [PATCH 0/7] KVM: selftests: Test the consistency of the PMU's CPUID and its features From: Sean Christopherson To: Like Xu Cc: Paolo Bonzini , Jinrong Liang , linux-kernel@vger.kernel.org, kvm@vger.kernel.org Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 23, 2023, Like Xu wrote: > Hi, > > The KVM selfstests shows advantages over the KUT in terms of finding > defects through flexible and varied guest settings form KVM user space. > > This patch set tests whether Intel vPMU works properly with different > Intel CPUID.0xA configurations, in which three issues were identified. > It also provides test scaffolding and a sufficient number of pmu test cases > to subsequently provide adequate code coverage of AMD vPMU or Intel > complex features such as LBR or PEBS in selftests. > > Please feel free to add more tests or share valuable comments. > > Related bugs: > KVM: x86/pmu: Fix emulation on Intel counters' bit width > (https://lore.kernel.org/kvm/20230322093117.48335-1-likexu@tencent.com/) > KVM: x86/pmu: Add Intel PMU supported fixed counters bit mask > (https://lore.kernel.org/kvm/20230321112742.25255-1-likexu@tencent.com/) Can you send a single combined series for these fixes, plus the tests in this series? I expect to apply the fixes before the tests, but I want to make it as unlikely as possible that I forget and apply tests that fail. Thanks!