Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp695051ybh; Thu, 12 Mar 2020 09:23:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsjuGTwXWEx5quJRYrgLRhxiJd4wMbqNaYklQm3rVWERzDevQkKqp1fZNCzaxlfXbPqUiER X-Received: by 2002:a9d:4e94:: with SMTP id v20mr6608742otk.96.1584030227809; Thu, 12 Mar 2020 09:23:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584030227; cv=none; d=google.com; s=arc-20160816; b=aEgqmR4vycuahyTVA3ZBTj73ciSl+25ihoItc1j7YVEk+KLM5H8hzrRL38ARY1L5iA SXuOQl/8HBHSrit97qMJI196dm0yK3bnGWxzkeGREfBIsUWpQO+iDHPutXGT4TKyNx+H 2LLpjZcB6gQ9YC/t4x4oOeH2BkY6nmL8sRs18Uax0TxJmr7LV1sFLAG0jloBCZyXsgbF F00LoVadqw7hk2ximqzCMIrUuYzwhfDsPEEr9mmvYh1KzV44pGacBcDwNY9fqWVH26hW bXKZj0SrOHk4ORqZLfOe1qoDsSi3/xh0qnTv/en6L2d5BO20wKqfws9s54YtEUAD/NJ9 JBlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=FsBkMfXUDJCMIz03y9mCTBZqiTPEgGnz8wIzFbdqMVg=; b=Wg//86O1o3HSB1/VfnGkBAZqYgJTuKQtGMcU4qIR6wbRiGO7Vd+CBs2IIut7uBqpI3 kYM6ghNHsvcb2vCJQPI5dUR+fAC0D6WVtiNtYpf1YDuHaw28Y7SI/KffYLoHMIpfxLaA fsM+Fs8kNIv+ohwM2ygnkicvkvU+uwo6UD83816VZnFXU7cVywAO5t4OPJ6aw3IkuU8w RYeqWMXLrhOw3r+x4aqTRa9Eb7tSSPvGnTEv4YPtASXJzAoGIYOyQf2quxMJVnQz1+yC WVlKQ+lq3IICXTGpouvNKiaw6fipMTMETr7thmADjBbTte+6EKgbEv9LWYBIB7Do/P5Y LBhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O9FcjZXM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l9si2992864oie.230.2020.03.12.09.23.32; Thu, 12 Mar 2020 09:23:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=O9FcjZXM; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727380AbgCLQWI (ORCPT + 99 others); Thu, 12 Mar 2020 12:22:08 -0400 Received: from mail-il1-f195.google.com ([209.85.166.195]:33543 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727210AbgCLQWI (ORCPT ); Thu, 12 Mar 2020 12:22:08 -0400 Received: by mail-il1-f195.google.com with SMTP id k29so6065199ilg.0 for ; Thu, 12 Mar 2020 09:22:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FsBkMfXUDJCMIz03y9mCTBZqiTPEgGnz8wIzFbdqMVg=; b=O9FcjZXMFD8GF6IEEZhFGDBqTuIvQesX2WgNd1l19a+/9ldD7XjP711gfSHVvdOrvl VpoABOR24wJ3MkWXbnwbBK0SX9XLfLw1rq2HLT/vXJNfpdVx4nFl1+9AxJfUzvyccbEH bOd8AEJTeXTBLHxc1tlQ9780vwc+907tRLl3RYP+ls5TB+gYWNZxUKv+FsBAxFfPpC2r 0/cxKtUldX8FFJmLTsLaVB9sTY1T7cIBzwRdxwNj9fhKvpVlj/JUr8mp8/vXJ+2Ri2BW MQsDlrvKcj/Cob1s3k819pATx0c73VmZmD6HcPcge2D5wm8AIuPeVk2ki8IK3xrLLaA7 OZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FsBkMfXUDJCMIz03y9mCTBZqiTPEgGnz8wIzFbdqMVg=; b=Y/xK5fUrmCxBRfkOI8ivZtfyM2tztrO7wPvJnN2dsyy/1bDRv8yAOQarAXqQbJmKoG N10EQP2xAiRpaqPEaA4yTeoGfC9jQCj30KAfu6GBSap+Xa9ZL9U5bPBffAU7tVnmsgau UkVOir9fvDn/5hOX2i4oxYOgmyZFsdL0uF3fM53IXDBR4CZnvUqgtmpFaU1tqbm6zt4X yRrCnaHEz91slYBDxxWQgieA6gEvvZuZgVVEEAHh/O2/9m3TicdC7f049KBdo4UQT14l eg0nHW16sQNq4nIzwOW5NsrPAXQnonlp4U5Z8htrobsKnW2PCnMr4GTX3Z/FbLFcyvug fO6A== X-Gm-Message-State: ANhLgQ1C+3y08s6WlobNlcmkWc6wBwmDDyUQsgfxhT7kzOoCafRGgTPN aYNM9hprGouBTilSJc42g86Yzm0YgUq8LDdP6tyD0Q== X-Received: by 2002:a92:8458:: with SMTP id l85mr9084710ild.296.1584030127144; Thu, 12 Mar 2020 09:22:07 -0700 (PDT) MIME-Version: 1.0 References: <1584007547-4802-1-git-send-email-wanpengli@tencent.com> <87r1xxrhb0.fsf@vitty.brq.redhat.com> In-Reply-To: <87r1xxrhb0.fsf@vitty.brq.redhat.com> From: Jim Mattson Date: Thu, 12 Mar 2020 09:21:56 -0700 Message-ID: Subject: Re: [PATCH] KVM: VMX: Micro-optimize vmexit time when not exposing PMU To: Vitaly Kuznetsov Cc: Wanpeng Li , LKML , kvm list , Paolo Bonzini , Sean Christopherson , Wanpeng Li , Joerg Roedel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 12, 2020 at 3:36 AM Vitaly Kuznetsov wrote: > Also, speaking about cloud providers and the 'micro' nature of this > optimization, would it rather make sense to introduce a static branch > (the policy to disable vPMU is likely to be host wide, right)? Speaking for a cloud provider, no, the policy is not likely to be host-wide.