Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp1491839ybh; Fri, 13 Mar 2020 02:09:10 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtklwZTFuEo/91R2JQPk2Q5OmFHvs1i6rRauB0jClpMeGBLue/rwbw5MObxXeLvotZAsEY6 X-Received: by 2002:a05:6808:5c7:: with SMTP id d7mr6101120oij.136.1584090550726; Fri, 13 Mar 2020 02:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584090550; cv=none; d=google.com; s=arc-20160816; b=I4WHAHESwRFxEXljjBOP6zR4/8+Pf12/7EUjs3eysdKlkpVHqWHicim7DXguEnmfHB CLGf9VFjCHYZMe5GA1s6sQ49ogP5VGPuFJA2lrDeh0x9XyplJqmdJe3JtCxBrsXlEDAT a/Y7gYtMs7ZMoUIGJ25n2dCUPaVRm5DYRXhpnDtlfPiaPpbHG2d/YeSCuz4vVt/EOLAu q4SdDDmGnEdJYD4xOOIVlZMMkpcrRNP/NDlez4aLdgyhAwsSb9uPUdbtFW4vJQr0Hr7n HrF5xqdDG1NvoWtZOG3QmeAFnvZ0UWcAw9iWpaYPaI0HwKRPy5Pw6bDolUk6Fp/Hnony guUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=wl+yNGtuWXWkfGSGtM8HBlvrUGjPCbpwXBezEmRx7rc=; b=ixc/K2yFvtKBH5Iy2aihVXxbcbGVNu5GwJAxeakQ2teBoQuRLXzBFkLv8M8rwobNMf T66lPPw1Hx+mCgt2Vcp1deViXWA+Iqk6VVEXS943KRJFFK+i5vixsCwoUVZzCpJf+KEi 2W02AbKSIkERUQlT3o+H44vJjkVsyQmFE29cZRfg558a9L/1M0rjKNthVIaNgfM8emuG ABvhcxSE5Kg/H3gmx9hW5JpatAnhBaJbceXsYcBhsybJvNkiotJMqp6yVML0rBS0gkfW S30ihuCD82vG+DofDULYq6m4qHeOT/GeasK0dNNq//jFg+yPczfwq3NaRvWxHVylliEq Dslg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=WTkoZztp; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e25si4629437oth.38.2020.03.13.02.08.44; Fri, 13 Mar 2020 02:09:10 -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=@redhat.com header.s=mimecast20190719 header.b=WTkoZztp; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbgCMJIH (ORCPT + 99 others); Fri, 13 Mar 2020 05:08:07 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:35622 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726464AbgCMJIH (ORCPT ); Fri, 13 Mar 2020 05:08:07 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1584090486; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=wl+yNGtuWXWkfGSGtM8HBlvrUGjPCbpwXBezEmRx7rc=; b=WTkoZztpTO5WBTsxiK3XBDQLkF82TXRtCl4XJgnUaQs+An7B2liwtpYf3cW83RqoOsN2A5 xIVKDizdFv7Z+IoGK2+tgkPUBPqxEZ5NAmZD5yXt7/4DODlomx59XlfIVPk8praFeDQBme LjHE0o7ubK/KVL6pBaOQ6GnwSOW8pd8= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-131-ZkiuPHt0OmCFdJTxDkx95A-1; Fri, 13 Mar 2020 05:08:04 -0400 X-MC-Unique: ZkiuPHt0OmCFdJTxDkx95A-1 Received: by mail-wm1-f72.google.com with SMTP id f207so3171702wme.6 for ; Fri, 13 Mar 2020 02:08:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=wl+yNGtuWXWkfGSGtM8HBlvrUGjPCbpwXBezEmRx7rc=; b=MybUfd2vjtwX0L0O/gDlAswHn7K7/VdoB7C7LZudy5xEok6kblFp675MBm2ayk2Jug vb6tlnriF5Ac7YzeA3ftJiDGoRfWFIDbBmLgVwZT5FXoSOVWyrUV5a6v0PFEir5p2BUT aFxoEOCKcoUW8RdBJtFelxZEBJw1jtx3I12n1OTt3nPiaKHap7G/MD3DnpCaLfIYTTTV U6CxScWd/+ZcoAVTML89d6KwFSopye6xF5pzcLYu7oiCXm99cvjxciNZe7WZ8+8uDnzs J4bdDKtKP2BDlYBTiIRsyzIvfEyiXZscrtadvbKaicvWpM9UqZvnOyW87AHxO4FeES57 u75Q== X-Gm-Message-State: ANhLgQ3XbKOu+AKEXSp+iH5eYjy9JYHi1ChN9XplZZwwn3OUDoT5LWBn JCEGGau3PGli5F1MrK2T0gXnX2AB6qBNpby65plrwxVZSgy8uv+F1JyMd+9JPFtWX82MPqseCLv mXU3fg9llDQodrIQ68QUK07It X-Received: by 2002:a7b:c4d6:: with SMTP id g22mr4716938wmk.79.1584090483178; Fri, 13 Mar 2020 02:08:03 -0700 (PDT) X-Received: by 2002:a7b:c4d6:: with SMTP id g22mr4716906wmk.79.1584090482942; Fri, 13 Mar 2020 02:08:02 -0700 (PDT) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id a1sm39008132wru.75.2020.03.13.02.08.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Mar 2020 02:08:02 -0700 (PDT) From: Vitaly Kuznetsov To: Jim Mattson , Wanpeng Li Cc: LKML , kvm list , Paolo Bonzini , Sean Christopherson , Wanpeng Li , Joerg Roedel Subject: Re: [PATCH] KVM: VMX: Micro-optimize vmexit time when not exposing PMU In-Reply-To: References: <1584007547-4802-1-git-send-email-wanpengli@tencent.com> <87r1xxrhb0.fsf@vitty.brq.redhat.com> Date: Fri, 13 Mar 2020 10:08:01 +0100 Message-ID: <877dzor5am.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jim Mattson writes: > 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. Ah, then it's just my flawed picture of the world where hosts only run instances of the same type/family because it's mych easier to partition them this way. Scratch the static branch idea then. -- Vitaly