Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3910281pxb; Tue, 17 Nov 2020 06:46:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJy6iWgpml0TMq7vu/xJH1xD18Xd+4ocknZfhQilnuO/iorUkPe0/ea/XXJXn6OBT5hHffY2 X-Received: by 2002:a17:906:a988:: with SMTP id jr8mr19288502ejb.508.1605624378479; Tue, 17 Nov 2020 06:46:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605624378; cv=none; d=google.com; s=arc-20160816; b=ipaNc7VYtTPGi1xA2CahhWo9Grg91QDDT5RjZhllcta4YqtgbJMB4y35yIdpv262vv WI8jgYBnN3gG8SrMWQNrW+ic+ND84eSuvOwNyCHRNEWiRhwSvxhwFr+EkP92eQwKjYbe jtHyrHKZW9l1pDXnjhb16L06NDVGr7kN7/hEJAWCIsCDc26laTYkT9XWMICE4U/f6/jZ Wdr/20OmOiE/HDtpKg9ickdTy2biOA6mjU/5JO0h7X9m8BEgLCd5b55V++4csNX8p3ss V0CvfY2h2QJiLvdUU0OngEtka5w2bmW2yw2/UZ8lO11zXjLdC9sAaIxDKPyJ/zbKHrC0 BMsQ== 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=qXjtO1woaol7iPwADIP46DxZv5Jgw/GuoGZBgKxipSY=; b=qgOpyOQrwevwpSNLLexsx32RGrFzj9nc+qyiWXFk2W2WDhiMsejO1JuXkDfwf3x9P8 qCNZz1vWnawM9mSrkj9EfmD4VQCVPMF4eitUTCCmVRFlapiBCEsD6zWD9QvYLOq7o7K+ O1TDRr0yUtkq9Yy54i2FqyNQQy7jQPFZg9PAh0I/JuFWHcagTcgd3VFVuVsHEcdOcp1O h2VdOlftfWq1oesRNb2TFSLjl3xAcvMuYtGUdb2rI8dm7oeBTj1kIQM426x1B3pVnhdT DVXJNwCTnPLxpXxZPxBopD3OMAS84r1GPcaoW8d4he80la+xCHRoHRJ9NI8Pnu0CObIh uPnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=bB0fh6w0; 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 i25si14199517edy.223.2020.11.17.06.45.53; Tue, 17 Nov 2020 06:46:18 -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=@infradead.org header.s=merlin.20170209 header.b=bB0fh6w0; 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 S1728820AbgKQOla (ORCPT + 99 others); Tue, 17 Nov 2020 09:41:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728383AbgKQOla (ORCPT ); Tue, 17 Nov 2020 09:41:30 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5649C0613CF; Tue, 17 Nov 2020 06:41:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=qXjtO1woaol7iPwADIP46DxZv5Jgw/GuoGZBgKxipSY=; b=bB0fh6w0LIojpefdBm8nT/fKZ4 PdU5JS6RKYiXV7ndxrqUiRSY6z55d2+9liCi5DgiC6bxryaGvpI8c3IZvAh0gQvM/Tfs9J+I4i60K ScdPi1rptONFBjFL3iWIxpXAwHxh+KzHhCvoc3u/AvL1KpHJw8XJFl2LBBl/DhWEkaLetdrF3Xy9P tyvExE4SP5TZU6VlX4aTcUtHVYNtXDXfBXpHR4oKjF62kVayyKgwC3hmV2DXvgUd6ZW49pIPmVFsc FNgY1F/P+qNHc1YV2jxUn21esttrcw/MM28ahbdIhBksklTSXQjVSHmNZnjIAJKE5Qsiol2rCxPfZ NJxOgDdg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kf2AJ-0006Sn-3j; Tue, 17 Nov 2020 14:41:03 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id BB9713077B1; Tue, 17 Nov 2020 15:41:00 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 9B1FD200E0A35; Tue, 17 Nov 2020 15:41:00 +0100 (CET) Date: Tue, 17 Nov 2020 15:41:00 +0100 From: Peter Zijlstra To: Like Xu Cc: Paolo Bonzini , kvm@vger.kernel.org, Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Kan Liang , luwei.kang@intel.com, Thomas Gleixner , wei.w.wang@intel.com, Tony Luck , Stephane Eranian , Mark Gross , Srinivas Pandruvada , linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 05/17] KVM: x86/pmu: Reprogram guest PEBS event to emulate guest PEBS counter Message-ID: <20201117144100.GK3121406@hirez.programming.kicks-ass.net> References: <20201109021254.79755-1-like.xu@linux.intel.com> <20201109021254.79755-6-like.xu@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201109021254.79755-6-like.xu@linux.intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 09, 2020 at 10:12:42AM +0800, Like Xu wrote: > + /* Indicate PEBS overflow PMI to guest. */ > + __set_bit(62, (unsigned long *)&pmu->global_status); GLOBAL_STATUS_BUFFER_OVF_BIT