Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp207637pxb; Fri, 15 Jan 2021 10:54:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJyXtQuhGhPsh/O0rtNgThXPGLGB75ynOgUnyJBw8Q5YNWAOC2DSUwtqNh/O99Q4LMUUvntN X-Received: by 2002:a17:907:175c:: with SMTP id lf28mr9624875ejc.110.1610736880892; Fri, 15 Jan 2021 10:54:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610736880; cv=none; d=google.com; s=arc-20160816; b=wzVi3+DLq9tPSzQ+YKLu7FHaTNyU69nMJ0e5X8ByhBU7mKhkephveeFsfMJ5ZsKMqy KL3LoIOCQCk61VBQqA+sOFntIbyEA5R0ymyzRWFqtsgbLKsSYr4QsG9Wa4qgIJeMEWnK 7GoNuI80YveHYXjFDYajEzGoAcuNaoKmqjUvUHA9n0Qm5IFm7vxfnuXStwwWz2qpQ7bF 7G2myJ8ah6IpJpf6qOAzm+giRfNXfdJapzw+IgWH/BtCV833dzk+JOpHoD+XGyKjXE5+ rFijC7FZ+kD5dXMASRah2yPXwF/ZC0PpHPfw+U8S/Av3ZvL5GOsOjeMMw9SfpRUzrloA 87EQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=2ch/HrNBo6bzToTGSnl4rPPwVNGRB87UYiv3EcbSK1A=; b=XRJ5lV9s+2Z6/H5vldiINVXt/+K+iLaib/ny01MrWVoYXI/jDwR3nFA8mI3konuyFg oLq9jLeyUsAMdlLiEgCMf3jjZ4hduePTOtwtPLeT2t9A8AROnw75jNhyC5anhyhHy+nk dRtqrtOR1Y+SCUhntPtTHo6GQH3Jpbgl+mI+BA082Y3tr5cF5ND7UW9kJboVgJLfaFj/ 18PFuE72JTVw4oJRxf6HPabNRZKoIgBYCj8CGQuq5j/PJTxcJK+KCT5GNjF3QqoPmXw9 TgHNpejT+Wg69hFUrsD93ULRvIQLH1FQpEr4XL7KUjRTW+pV+EqCy+Rnrb4y1ERexCQf /wwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=YQICljed; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f8si683478ejw.359.2021.01.15.10.54.15; Fri, 15 Jan 2021 10:54:40 -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=@google.com header.s=20161025 header.b=YQICljed; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733304AbhAOSw1 (ORCPT + 99 others); Fri, 15 Jan 2021 13:52:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726467AbhAOSw0 (ORCPT ); Fri, 15 Jan 2021 13:52:26 -0500 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65126C061757 for ; Fri, 15 Jan 2021 10:51:46 -0800 (PST) Received: by mail-pg1-x532.google.com with SMTP id c132so6593254pga.3 for ; Fri, 15 Jan 2021 10:51:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=2ch/HrNBo6bzToTGSnl4rPPwVNGRB87UYiv3EcbSK1A=; b=YQICljedlfUn40WJz//j5+ER9vk1pScXgKsDDNe7FyYz5lsdeqQkqsTFs3I1x7ntX7 XORtjdwUG8HeO2yy9ztInzXwlnAvitykLL5ct3WYSNFdYpMBltGFAyvNIvcsnZlYP289 5zXy4qo4ROo3qeRLPlMjjoTWnr7dwKjTYR2Ou7Kv+3/RhzKCHhabnT/dCb5RThGC0OW8 dToZpdK0ZcgjpT0GSzx13vKYO/WMr77V6Z9KJhNLZ+La21CEgk96ECFn/uvHeT5pgzuR syAbVm0++FXKjvN7WR1qaU6+3KJ6qo5x+LODk8nVTFqcB0hS2w2TmKVedjzeQh8iODjb wk0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=2ch/HrNBo6bzToTGSnl4rPPwVNGRB87UYiv3EcbSK1A=; b=VZG1K1TlCfg1Y1/vpXnQe8hK7hffsDvIKVj2Y1hkur5JnBpkJy56TxNODKDkIzLMCO EuNzj2+SrdEQQpR45VqpOVfzFHRvM7si7W6c5D8Q4jHvKhwkTN1272vCdb7SkY0u1LZN 6G8PtUL/5HATyHXtKRksJ/pcXjuFL9qAf6gvAWdBbY+GgbRf4XehopmB8/hFy4EQdQwV 4xC2RtNabKF220oe6Gt3lH7Uz7IgUtqDkcaUSzju23uTTEG/E4uN3JJp+gCiA4gRpvGV Et6QfXast96Tj+BdsLOjbbUllp9+vgYiCCUnvOHjVXsk8sTT05kEu8fqP/PrRXWDzaYj Hu8g== X-Gm-Message-State: AOAM5339c0vyO4g/yYROQ0VPBfeWfrWv5xZ51CvXB/9xj+9bBAszThrw 8NmQaDXbIxoh3P9yPW2drRQd5Q== X-Received: by 2002:a63:4923:: with SMTP id w35mr13774358pga.404.1610736705803; Fri, 15 Jan 2021 10:51:45 -0800 (PST) Received: from google.com ([2620:15c:f:10:1ea0:b8ff:fe73:50f5]) by smtp.gmail.com with ESMTPSA id a18sm8754939pfg.107.2021.01.15.10.51.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Jan 2021 10:51:45 -0800 (PST) Date: Fri, 15 Jan 2021 10:51:38 -0800 From: Sean Christopherson To: Andi Kleen Cc: "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: 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: <20210115182700.byczztx3vjhsq3p3@two.firstfloor.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?