Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp703719rdb; Thu, 19 Oct 2023 17:29:09 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFo3XU4nNL1alLwCOknt3Lc/6zEZ1X6973Sb9xoTQR4fIcCBR3aLFYHhj5Y0UcSPgy7WnyT X-Received: by 2002:a05:6808:1307:b0:3a7:2d4c:5d4e with SMTP id y7-20020a056808130700b003a72d4c5d4emr524462oiv.7.1697761748994; Thu, 19 Oct 2023 17:29:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697761748; cv=none; d=google.com; s=arc-20160816; b=WasH5U2qhQrqXTxWwMPLevLCu//jYIpeaTFLHH6u7spUva9gTyO8KNLhEW6hZRnE3y ydBdXpg3tJWHyLCQXAzy4ncKk8Hn/JdKgB8gfJZmMNkgnIHfI2yZLB7rfMsa55C2MptJ iScN/sm99uvyJIAWiBmlo2AXS7XX/Rg49fEDlLjTqAaLuV7z2kR+vt5PFRtjBc96lTNU waT71GRGF1ybjVnHv+1VQ06nD5hsIemToedcrcap7kY+dPn29Lcjag79gsSWAOtVg/69 zbGvt6X8SPrUPmLR4b19IdOe1nCTBlfEU5Xbb9LAq3OUrN1fn4APY/OPDzs4O6dLrBo4 759g== 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=/luxcsSCFUvYWRTb1sE7Q6KZTce5i+T1PA+X88JDWC4=; fh=NZar1lo+0Rhg/9fJqaygQT5vsrjdPJfNAdYFy36OmiM=; b=ZbuTgl15fcMl8lsumQJ1/XQetigt2tAV+AXlRVisbBA0LI8XnNe2pvx+s+/4bgclF3 sD0CCUx1E1L6sEyWUJwVLRLB2ZeGCP1AYB1JVS/PuPt9juNpijMJUDWynApJRrA8QPm7 3BH8N1qhBWEjqyXbH7OzxaLeUIg5CS9MVm2fPuduyhCZcb6n85Q06DE7JxJ+TmfAcWVp tJsYJ0/XQili4vSHv4RGyFdqukpRxpJ+xmKmfle/ls2GyxPR4+fyC0EiQJfRxhC+3z7y VIYqtFtVl+0P5IVQJoLoDNqG5hbgozIHBxnNI4rGkQ/Cay0jIOuCOXOK/aEex0ibOzCx OzOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=BX56QL+y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id 83-20020a630056000000b005641315d956si724584pga.147.2023.10.19.17.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 17:29:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=BX56QL+y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 9495681D0B6A; Thu, 19 Oct 2023 17:29:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346781AbjJTA2u (ORCPT + 99 others); Thu, 19 Oct 2023 20:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47086 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235577AbjJTA2t (ORCPT ); Thu, 19 Oct 2023 20:28:49 -0400 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C5F8131 for ; Thu, 19 Oct 2023 17:28:48 -0700 (PDT) Received: by mail-yb1-xb4a.google.com with SMTP id 3f1490d57ef6-d9cad450d5fso330044276.1 for ; Thu, 19 Oct 2023 17:28:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1697761727; x=1698366527; 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=/luxcsSCFUvYWRTb1sE7Q6KZTce5i+T1PA+X88JDWC4=; b=BX56QL+yaHR/zLyYEum5ju4JkkUYS2P8OAhAUTnyOYPypa7GspTINSSfKz+DAKnNon TYujVI0VVLj93ZsD3BRggkDjQlwH0ZwhbYC3P1XAMzTfTh9FxZQqXZIym9vmVhC4+bkN 5OShC9Ps2VK2GU/XupLIzz8w47lSvSMRv/W4b8UsraXeoqeT5ksC6vuEKvkec2O/zLqs Fc/U5WSpYuQnNpRr+rKVbxuIGAlPKoMTAl6Jwq0yvZqr84xzocqH4fG8LIojszg9D7jV FfSiVsP1iSad77uYcas7vJbHi/RH4uyrzlGuFlQ6a7Efr2UGxtfbB3tppsSNSixrXcrF PtLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697761727; x=1698366527; 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=/luxcsSCFUvYWRTb1sE7Q6KZTce5i+T1PA+X88JDWC4=; b=ZpqXwTOJxO2qlEd7iOFhB/DtEghA7umcoJtrJD676GVOnHKJM2cwXfxUHYMfOuLNj6 LyYKUocNewLT/kxxaxUEF4KmxO0Ss9bW9ZNKJvTW6Gk+8RhPH7fqZT1Xk5PA+NfLb31J 2yBkXrwDFkVz5vliPRtU/V8T6QSF+Lc9sf3O2GkXiSgydNJk87y65ltD9HWuPBB1tZ6C I91jYSVqghwC73LOvaAmvv77L2yYcJi1YNnikcfr+y7sGXzBeZJyLa4yk0lYR+tHgfm/ HaL8NHxo4VNgS7KhO3s7f5pzkSJucaCqwF6omnETlOQdDHxArHaeEfbbVzdTR+ONGzD7 GKcw== X-Gm-Message-State: AOJu0Yxmv9sgCEDlGjGtzXxnCKTiy4aVYsyEwB8M0R3kgurRjSfYGDia yNNP1esJMwvIjVXxD7sggGmTy2GLEIs= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:d05:0:b0:d9a:5b63:a682 with SMTP id 5-20020a250d05000000b00d9a5b63a682mr7309ybn.13.1697761727279; Thu, 19 Oct 2023 17:28:47 -0700 (PDT) Date: Thu, 19 Oct 2023 17:28:45 -0700 In-Reply-To: <20230911114347.85882-1-cloudliang@tencent.com> Mime-Version: 1.0 References: <20230911114347.85882-1-cloudliang@tencent.com> Message-ID: Subject: Re: [PATCH v4 0/9] KVM: selftests: Test the consistency of the PMU's CPUID and its features From: Sean Christopherson To: Jinrong Liang 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="us-ascii" X-Spam-Status: No, score=-8.4 required=5.0 tests=DKIMWL_WL_MED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 19 Oct 2023 17:29:06 -0700 (PDT) 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 wait for you to respond, but will tentatively plan on posting the above branch as v5 some time next week.