From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id C29BEC43334 for ; Fri, 10 Jun 2022 04:22:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235982AbiFJEW0 (ORCPT ); Fri, 10 Jun 2022 00:22:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41946 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiFJEWY (ORCPT ); Fri, 10 Jun 2022 00:22:24 -0400 Received: from mail-oi1-x22f.google.com (mail-oi1-x22f.google.com [IPv6:2607:f8b0:4864:20::22f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A21D42D56C2 for ; Thu, 9 Jun 2022 21:22:22 -0700 (PDT) Received: by mail-oi1-x22f.google.com with SMTP id l81so18852345oif.9 for ; Thu, 09 Jun 2022 21:22:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gaj0oheke5OQkaHG5tbuEIzRasAdO37vo5qEEpHUshs=; b=b1uWzdAmG1cVbn2NY4PO+LLU27EzNGIxzvi1S/PlWa/kiqUedrFiWil9YljuK5gVda PnaSTEraPK9gwtd5A1UtYnsCjcGCorlKQNUzU4Px2ScUxKl4WlAitd7P7WfQCScUbFsW 1X5/eyXSjgXrOOs+l7x70fU60GJ5dfSyu9ThAaQ65blZtAFQe11lcsi9v2IBrqTWuT7C 8L03e5VilYcRwH7VYz3rMf03hwqFxhvec9xZ6hqGSrtfAuSV6tPDmcq5V7pqd9G/rGx2 jyxwXevHOINXyZv/+VyIVurtR7dy1efrr4KFE3Hv4W/x2X37B83Vq0x/Zi7CXD0DivOm W0Yw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gaj0oheke5OQkaHG5tbuEIzRasAdO37vo5qEEpHUshs=; b=c8foZXBa7IqTa6YZeLLTqwfI1UMcYAE4E51xque0SsdkV9gcq3nxLW3zy3+LmepF9J fj0MnSdhhPxnmpSDW8PwU0E0UB/crKhhaCxWcNl5zKmfiFsURgGI7r5zBnZdOBSU5s/s XvH+OA8Zy++9lyc1gLv4sWY0rEyFmSv1Va9YH5zWcmyvf1/4c2MpEkQX+KlpqF3uWID/ gr+54NUDW9gRRW8rFCT3JTQU890XIDY2jZtZKRS9IGz7TKMatL7+pPvzlhe9LKTM2Bv8 K3MhkNh1uM4Fh/4UcI1sHVjHGjxbYtJN3Xq3CbeCZnaRqogMs13Tteb9sSxBJOUUaKc9 onow== X-Gm-Message-State: AOAM533rQtiSQo05GaOedLnBxejIE2EW7nCP+kXE6XR21LxcmsNZSKa3 nMa11DHaGpd/ujqaX4amWJKJ8GNOwOudIbbc+hskiA== X-Google-Smtp-Source: ABdhPJxp1zHg9orfHLA4DxS/aPs6yXf+FaQFIM0yFzrnyVQSIhnLSBsFRL5ueiuX7jQGdzoJNatdjDZo/i07lks8nOE= X-Received: by 2002:a05:6808:1283:b0:32e:f2d1:b2ac with SMTP id a3-20020a056808128300b0032ef2d1b2acmr2812570oiw.13.1654834941822; Thu, 09 Jun 2022 21:22:21 -0700 (PDT) MIME-Version: 1.0 References: <20220609083916.36658-1-weijiang.yang@intel.com> <20220609083916.36658-4-weijiang.yang@intel.com> <587f8bc5-76fc-6cd7-d3d7-3a712c3f1274@gmail.com> <987d8a3d-19ef-094d-5c0e-007133362c30@intel.com> In-Reply-To: From: Jim Mattson Date: Thu, 9 Jun 2022 21:22:10 -0700 Message-ID: Subject: Re: [kvm-unit-tests PATCH 3/3] x86: Skip perf related tests when pmu is disabled To: Like Xu Cc: "Yang, Weijiang" , kvm@vger.kernel.org, "Paolo Bonzini - Distinguished Engineer (kernel-recipes.org) (KVM HoF)" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org On Thu, Jun 9, 2022 at 9:16 PM Jim Mattson wrote: > > On Thu, Jun 9, 2022 at 7:49 PM Like Xu wrote: > > > RDPMC Intel Operation: Actually, the key phrase is also present in the pseudocode you quoted: > > MSCB = Most Significant Counter Bit (* Model-specific *) > > IF (((CR4.PCE = 1) or (CPL = 0) or (CR0.PE = 0)) and (ECX indicates a supported > > counter)) ... The final conjunct in that condition is false under KVM when !enable_pmu, because there are no supported counters.