Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp885544rdb; Fri, 20 Oct 2023 02:12:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHfo/3zudtiJBZ+FN+FeaOnbMvwSRuRQTEEu+7wZNqHKryy0QwXtcsCd79yY6e7FLY3Y5lI X-Received: by 2002:a05:6358:428e:b0:166:c0e6:e7c2 with SMTP id s14-20020a056358428e00b00166c0e6e7c2mr1248262rwc.22.1697793142210; Fri, 20 Oct 2023 02:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697793142; cv=none; d=google.com; s=arc-20160816; b=DlJ3dJS/fKRtZMsxJVno4EGESHSENXuBH3BrLfx3dssK9dhJ8L8LwyiaS86I0v7ejb yovtSnTnfDi7C40Gfh+kRIJRfOLVc+6zL+lRk7MfxJJlwFVGutUXpvB+VKhEAgV295mr rmJKYdI8bPicJmrUvXbDzZwUuW8GtXS/XmHJi4NMShB1SR+8aV7gNFT1i/sdHTrjF2hy jNWoz25uyloQN6Gh18C/esCxzD3NYwhalPy+v7aPmiPcubo8BC/mn0XlEA5jov58T3pn G8QojiXMgrhG9HqCP0AE7fDhuCZZfhueKoZQ+Q6jZMXUO+/4+4EZZ0L0oxknsDcJBkuJ YFwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=X/i6Fw+r194GHmzLf5s0/R2GunByWxbzISKNUr2Ewbs=; fh=z1Dnh1TxvcGqeVnNFRePml2aYJ9Rh8h2Yl+Ydvf80Hs=; b=gEW9Jgl5qrk54ex+svb3x4h3T8gNFcFBEvGCIAKCw2cKCxOMwyBZeyr1aq6VaQ+Ohz lvMxas4jN6xJ0wFRIqWsMNvtG/v05YOb4MBNZuCV0VE3FARUucQibKbKYnPXlG/dmX0s HqrNS5VnpJMgv9w7W6VYpyHQZJiOpvmn2V3xULzB6VVKeWIlE1rYH2YimsgAknb1Sqdh SbNF9q2Wor5nGtoiYaxASlHiuRSqbs6PvBHhgUXUq4969WDKBFhT6vJPzYJue4lqEDyJ FlocdHpcK6yMx5E6T5Zm8BXsb/i8CKJNcYjAsPap7tNj8YyA6CxMOtXHO/b7gopx9/Z2 kqaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=WK273gnN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d15-20020a63f24f000000b0057cbd803b30si1489957pgk.654.2023.10.20.02.12.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Oct 2023 02:12:22 -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=@gmail.com header.s=20230601 header.b=WK273gnN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3CFBC81C0C36; Fri, 20 Oct 2023 02:12:19 -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 S1376604AbjJTJLy (ORCPT + 99 others); Fri, 20 Oct 2023 05:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1376523AbjJTJLx (ORCPT ); Fri, 20 Oct 2023 05:11:53 -0400 Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 324C3D49; Fri, 20 Oct 2023 02:11:51 -0700 (PDT) Received: by mail-ed1-x542.google.com with SMTP id 4fb4d7f45d1cf-53e08b60febso812504a12.1; Fri, 20 Oct 2023 02:11:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697793109; x=1698397909; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=X/i6Fw+r194GHmzLf5s0/R2GunByWxbzISKNUr2Ewbs=; b=WK273gnNBgQqtxS19+jYkmOUl/PUmlEIEavgAfKHtTxfPBGa1PIwsFZaaR+CkE1VAJ T6NUdNNx3tHeO3ejL/cFtG5yRgJOeO/+Gqcy65AyL+D8LVgkFoq7ocDNsu1f2mynPjFR B6GMy3EAOU4r5IXNC4OsMi1p11u8Ta41NMSbIvJVh4APkrTnh2mqWb4UWvwycH6B4ndx wBK2o/UG03KGD2SdIe2M4j5MHXEC2EyZ4sQFrdz8ZUXIZ2l9oxEzACss2xEGweiVPH+i W6EcEoE66mQVVXWA3pc/YzPxSafac/hcW58qM7lvc48s+TLXnsQWVjmAjZiAcT4Jm3Ga PdDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697793109; x=1698397909; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X/i6Fw+r194GHmzLf5s0/R2GunByWxbzISKNUr2Ewbs=; b=NRPrTHhXPaTtly2Zb1pLPdNyrs60dZwqkHWCCqyTLg9N8qzb2O8lfikAOgChEoo6ix zyANZhI6pOZpriBYdtLsMuwi99d/j8tFQ91RppsCKVBEZNLTtRThk62UJHRLOVhaaUgC opL6dXLV94PBFIBTqYhGpTUS8idrpHy6KmpefEmC/9IUh+8Uv+dbROWZmji9glL3e2tM oMLEWw0HRWUkgGGVRSkZQseMfb5lakrqYBUrouDfBMIiLlSGdiqp7y0+oOdsKn8Zv4SD MYrilo4981faaoQ5hy9LFE33mZMkuiqsGe7b80YNZ2p6nMwNrYsjfcYJJIas4AGLq7N9 8dAw== X-Gm-Message-State: AOJu0YyNtFpxQ0wbNtSvDtq/3XTEpk+8Z9gYwyDTmMKlkdnmLZXn30NN xqKikEIgeI/Xiyad4xfV2TbtTZIL44uvzVfgbd4= X-Received: by 2002:a50:aad2:0:b0:525:6c74:5e58 with SMTP id r18-20020a50aad2000000b005256c745e58mr1002625edc.23.1697793109383; Fri, 20 Oct 2023 02:11:49 -0700 (PDT) MIME-Version: 1.0 References: <20230911114347.85882-1-cloudliang@tencent.com> In-Reply-To: From: Jinrong Liang Date: Fri, 20 Oct 2023 17:11:37 +0800 Message-ID: Subject: Re: [PATCH v4 0/9] KVM: selftests: Test the consistency of the PMU's CPUID and its features To: Sean Christopherson Cc: Paolo Bonzini , Like Xu , David Matlack , Aaron Lewis , Vitaly Kuznetsov , Wanpeng Li , Jinrong Liang , kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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]); Fri, 20 Oct 2023 02:12:19 -0700 (PDT) Sean Christopherson =E4=BA=8E2023=E5=B9=B410=E6=9C=8820= =E6=97=A5=E5=91=A8=E4=BA=94 08:28=E5=86=99=E9=81=93=EF=BC=9A > > On Mon, Sep 11, 2023, Jinrong Liang wrote: > > Jinrong Liang (9): > > KVM: selftests: Add vcpu_set_cpuid_property() to set properties > > KVM: selftests: Extend this_pmu_has() and kvm_pmu_has() to check arch > > events > > KVM: selftests: Add pmu.h for PMU events and common masks > > KVM: selftests: Test Intel PMU architectural events on gp counters > > KVM: selftests: Test Intel PMU architectural events on fixed counters > > KVM: selftests: Test consistency of CPUID with num of gp counters > > KVM: selftests: Test consistency of CPUID with num of fixed counters > > KVM: selftests: Test Intel supported fixed counters bit mask > > KVM: selftests: Test consistency of PMU MSRs with Intel PMU version > > I've pushed a modified version to > > https://github.com/sean-jc/linux/branches x86/pmu_counter_tests > > which also has fixes for KVM's funky handling of fixed counters. I'll wa= it for > you to respond, but will tentatively plan on posting the above branch as = v5 > some time next week. I truly appreciate your time and effort in reviewing my patches and making the necessary modifications. I've carefully examined the updated code in the branch you kindly provided: https://github.com/sean-jc/linux/branches x86/pmu_counter_tests I completely agree with the changes you made. Please feel free to post the modified branch as v5 next week. I will add AMD counters related selftests after this patch set is merged. Thank you once again for your time and guidance.