Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2147253rda; Tue, 24 Oct 2023 14:00:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF6HYlecA+zN0Rh5/+I7IdQjfp9vRjeH0rC0QMrZcBIFt7NVOzGAlUzjy5boMQDbMGwhNYe X-Received: by 2002:a17:902:ec89:b0:1c7:1f3f:b6dc with SMTP id x9-20020a170902ec8900b001c71f3fb6dcmr11261651plg.11.1698181226373; Tue, 24 Oct 2023 14:00:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698181226; cv=none; d=google.com; s=arc-20160816; b=URxzkmb9lIbj/rNkT8SI5MtcciFMxam76GA2v5mfBG3fQY9tp9OBticyTmiisU7tKb aoCHAa8MfDQkDK+TiD6hECKgAA4vucXG1Hszdz2C5W2EQ8J8ZL01DPYLCzin3094Exy3 AwIalZM8yG9gogSpYTEykvSm+a1ijD/txVZrvJ8NNCqzzGPCFJLQLgufbX9ipm7aAb/G gOko5t6LZaFHu9aZ9Exaxd34V8paTDHAXAS4pZNK3SO8QHI26iP8/dZDAls+iQE7Y8qJ TRxJzm0WwV+K7zYgpFE96Bdgc/HQDmZz336cEnl108ks+lfWzJdjVWO0NKdu+6XNRhCV W36w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:references :mime-version:in-reply-to:date:dkim-signature; bh=rx1aphW+wLumWiPBC/N1xqdOchKFOo2y16E65jjAifE=; fh=0iOrsRiLTGbtV1OLmbNd5QANzUlQlvvW16ISV4rzn2E=; b=PO00ZUiKPbkYls41f8KRTab8uDnqpqNT/dNia7qVEA/dNSBpkjbDbuQPwYVq8vPyt3 a8GtJloYThYzE+KBMhCLxau0ny+a5UJOq9eHUmMxX9gvE4lFWrAW9IDQsJxBtCNMT68h ggxf2wJJhcTtIuptdsQM0FmZwDd8CZn9hMqYQSeyEpBQGLm7vAK6eip6PGZIiKlMt9QI WrF2upsbQHfXo4WJTSUze/7EwN0O9XiRkHgoFA/gp7SOYBOSgyaCq97OSlgSFAaZPYd9 resitHiogmBYnTb2JKE1oe69PX2CitL8qOPsnDjc2EMbxrix4xPP8JOw/ry5lC1eWDOM xQIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0i9fCdBp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id ay8-20020a1709028b8800b001c746bca05dsi8641898plb.69.2023.10.24.14.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 14:00:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=0i9fCdBp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 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 snail.vger.email (Postfix) with ESMTP id F049B8029050; Tue, 24 Oct 2023 14:00:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344346AbjJXVAN (ORCPT + 99 others); Tue, 24 Oct 2023 17:00:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234934AbjJXVAM (ORCPT ); Tue, 24 Oct 2023 17:00:12 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9E5010D4 for ; Tue, 24 Oct 2023 14:00:10 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-d8486b5e780so5736616276.0 for ; Tue, 24 Oct 2023 14:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698181210; x=1698786010; darn=vger.kernel.org; h=to:from:subject:message-id:references:mime-version:in-reply-to:date :from:to:cc:subject:date:message-id:reply-to; bh=rx1aphW+wLumWiPBC/N1xqdOchKFOo2y16E65jjAifE=; b=0i9fCdBpRlwOwZ/XuYHj1MX6Mv/tIzlSyYnzn4vsCA2aUOkRoIFrL84S1YzvrE4YYT cae2IrRqAqan8q3vYWI7+k/wf4qirn8ZX29UaDOmxxcokMJdcUdLJpAhbyhpL/E2mYqB rbCb+ynlzhGGDPdJpDOY+YY8vfR7gWV/d9Vpb/Cg7uZ27YNGQSE/HTFeOlI43mXvMeOI 4VBkGF434+r6ZW5/q3i8Qd2IM6U97o9yveMgsjO7eEuJhoIa+RCI1yuvOA5trxbc56nR 2Zn1DocN4QXK57UiERbU2gOAvLqN4+V6aKs1Xywe5dJ4/ou+Vx4cEyYlFel+iT+EPRyF o0Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698181210; x=1698786010; h=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=rx1aphW+wLumWiPBC/N1xqdOchKFOo2y16E65jjAifE=; b=UCMJX+NHRUdbKzivXpTrCWekQ//N11Pr9knwg5dpoG1f/z/OzrNiQM68ZXWQI/KyUB GYeK0T0a51l6WipyWriSQiIrzXR6IgeAnOXTKKMeEusc0E7SlZquEWM1C46iw9JSF1ro L/+XEroP2ymJfRq3pxkeDJDp+kBcr85mXcroGn5lFxD9XqYPDwKr5g+3KlWYu02rSEvG I6mWImOOjK7iGxrQNwUZAOvdOOFrBIzLH6MCZGbk/GzDUok/UGw7hYMoJI3qK7DXmVPE ll0S+SeqebViM0HqQ5BD/L6mcQ+mnVJlXeO4bQ/RRRxalYRJbP0ywJ/EddiL6wOK0wN+ /2og== X-Gm-Message-State: AOJu0YwQSzFD+Etq+x5uM2W85BQ8Pz9XhTLdU2lFcvmzZadelzCSJGAr XspwyqlToLZUsV2uoCJu5ah2nD1c+pw= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:3507:0:b0:da0:42f3:6ce4 with SMTP id c7-20020a253507000000b00da042f36ce4mr51861yba.7.1698181209838; Tue, 24 Oct 2023 14:00:09 -0700 (PDT) Date: Tue, 24 Oct 2023 14:00:08 -0700 In-Reply-To: Mime-Version: 1.0 References: <20231024002633.2540714-1-seanjc@google.com> <20231024002633.2540714-9-seanjc@google.com> Message-ID: Subject: Re: [PATCH v5 08/13] KVM: selftests: Test Intel PMU architectural events on gp counters From: Sean Christopherson To: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jinrong Liang , Like Xu 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,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Tue, 24 Oct 2023 14:00:16 -0700 (PDT) On Tue, Oct 24, 2023, Sean Christopherson wrote: > On Mon, Oct 23, 2023, Sean Christopherson wrote: > > +static void test_intel_arch_events(void) > > +{ > > + uint8_t idx, i, j; > > + > > + for (idx = 0; idx < NR_INTEL_ARCH_EVENTS; idx++) { *sigh* Yet another KVM bug that this test _should_ catch, but doesn't because too many things are hardcoded. KVM _still_ advertises Top Down Slots to userspace because KVM doesn't sanitize the bit vector or its length that comes out of perf.