From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 515DCC2D0E4 for ; Tue, 17 Nov 2020 14:41:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B351820867 for ; Tue, 17 Nov 2020 14:41:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="bB0fh6w0" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728895AbgKQOla (ORCPT ); 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