Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp219881pxb; Fri, 15 Jan 2021 11:13:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFnmOcPkvN56epgwY03LRpJ2+hJqH++NEcjNMZXNvonwJjSFAkVlkjv4kr/X31w7EpKxPD X-Received: by 2002:a05:6402:c9c:: with SMTP id cm28mr129513edb.281.1610737981060; Fri, 15 Jan 2021 11:13:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610737981; cv=none; d=google.com; s=arc-20160816; b=ARyeOCmhVJ/84hYs64zM4Z+cLfxKFsoJR0+QcyNcbKoUQLrA+GElmem4mJ74VmBs3k T/XF56V4ENDUZcrEED60bx1TDJncR+Ziujwn3yvCNyuCBu19mw9w9AV3nE4/4h2o8RPG vc/ssRTKst2J7QVJ0qZCm0gGcR+AVxpa+OTxJrWjC/h3s948N9mMF9SaUHv4LHY5LYYc 8elj7yvT8g6Fv4ILEDPQWeIcSa9Z+sL7flvHGR5mKV0gep+y3NOmgesVeBkCOdgsEsfd DSXbgKvfPkYLxZup/ue3klzyNXOr17CSkOH6VfE1Mo0ePdzoq7WtMyaDkF0d8kTKeFyq kPIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=hkGBMiHK/7prznzW1TQW72/mpbGMpLmmHqolytzrd1E=; b=medsbBL30HzeJ8dbz/59YfDYX7BbIYveeOyzcruQMUvqXsxn1N/pnpZ3kzMmYIR1ks bHXxlj4/uTSn+EQs483hW1nZgi97QOjX5mK/cdgvBWXsY9JBsDPgItzwV7EXVl+iNLZp Z2O0cLx90o1BWZFSpC5344aZwno6+IUNrQ3PGa5l0RX8SJTm+rsOmtg9/gruVq+GJPOq 11fkWUMxhvtT3kesUWFUyRV89kDWmibTB+OzRI7Tg2LxCkLgTMQ1P2OmAz6rVsQoUvRr ZevPFWdvy8c3Z5DfaZBaVHF3lQa8JOJ/rlKdd/4ci5TdVljAE6fo+MsVvMISnhzcwqJu /q/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=NBWC5xAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si4735135edx.593.2021.01.15.11.12.36; Fri, 15 Jan 2021 11:13:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@firstfloor.org header.s=mail header.b=NBWC5xAQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387569AbhAOTL4 (ORCPT + 99 others); Fri, 15 Jan 2021 14:11:56 -0500 Received: from one.firstfloor.org ([193.170.194.197]:46312 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733159AbhAOTLz (ORCPT ); Fri, 15 Jan 2021 14:11:55 -0500 Received: by one.firstfloor.org (Postfix, from userid 503) id 724AF86852; Fri, 15 Jan 2021 20:11:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firstfloor.org; s=mail; t=1610737873; bh=V4l2I3v0GSHTyKiki+4APxm2kYXFuyZMSHfMsKLhGZs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NBWC5xAQhnRr0zGIjYFJ2JFHdnvxCO9FqHoip1/gXPAVp6+rosEHAOdu4q6X3Ir2w Cao0D0TLCdRC/0j9kx6YkYHNOmjlkWxJr1sJwZEB9tpN4bsW3tEl03REk5iwMhUhed mDlxlnJjoZ+myVZ8boUSBgRtC5qDpTMvtISl3CLA= Date: Fri, 15 Jan 2021 11:11:13 -0800 From: Andi Kleen To: Sean Christopherson Cc: Andi Kleen , "Xu, Like" , Kan Liang , Peter Zijlstra , Paolo Bonzini , eranian@google.com, kvm@vger.kernel.org, Ingo Molnar , Thomas Gleixner , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , wei.w.wang@intel.com, luwei.kang@intel.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 00/17] KVM: x86/pmu: Add support to enable Guest PEBS via DS Message-ID: <20210115191113.nktlnmivc3edstiv@two.firstfloor.org> References: <20210104131542.495413-1-like.xu@linux.intel.com> <20210115182700.byczztx3vjhsq3p3@two.firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 15, 2021 at 10:51:38AM -0800, Sean Christopherson wrote: > On Fri, Jan 15, 2021, Andi Kleen wrote: > > > I'm asking about ucode/hardare. Is the "guest pebs buffer write -> PEBS PMI" > > > guaranteed to be atomic? > > > > Of course not. > > So there's still a window where the guest could observe the bad counter index, > correct? Yes. But with single record PEBS it doesn't really matter with normal perfmon drivers. -Andi