Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4322343pxb; Tue, 26 Jan 2021 19:35:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJxT4MdY8dFIkVifKAOBs0FdOfuVyoIjUFhL2gDWLzK0+Rx1eqZQBn/IwfAYonm9ouXKAROR X-Received: by 2002:a17:906:2454:: with SMTP id a20mr5332632ejb.203.1611718535354; Tue, 26 Jan 2021 19:35:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611718535; cv=none; d=google.com; s=arc-20160816; b=FG1TIuZkFnkqbfzsI20Gbe3DlrpoHujEHPMdXFByy861R0J4407MBz2I6M0kwMHgs7 d+F5tAxBhlZpIZevWUFi0RNiNFb8Dk9HnRChvIo1/5yFSLmG+yfSSK/bBzxRaLMrs9Ra DwmwPYIsefEUltLtpH5fTpppmH3UQBEekSPGXdvt0UKc2jtMXul/qQl8rPXH6ExFMw9h L/lBYDnKYAD/ZNWPI9ajuBOcTDlczHF5ULk+h9vpqlf+uqP363gHfQU+p5A+xnrXLl1K 6jCkBRKDSVw3p5ENDduz5ygYCXaLM9D0U0nq9o4Sf/WSEt1QkrIkhtimdskn6qlJkS0p 9gQg== 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=W1U508PbLkgwTccNSwME/R6sQRgPyIR7/FJo2A8YTu8=; b=wuqTwOqO18hfH7c3g9/RUcY/aOv7Ie2RcFxGcR0Iu4Zeu7+WwFDOy7aqoTQ2FW4YZ9 v4Qkc7IPJzA/q8YdpvaJpeuQl2fc+OPh1y10pi7OnoDre1C7ygGkl7AgJ9YhaEFw+OUb d93uADXWMJ5aEzQgDYUpyojgFLSZEghH4aH8GobtwuDzz3GMzfQaRIPG9bp44Y3aAwLw TAirFpro6b2DidUshsswzUb7F+OpEA6me2wnSnvm7Av/ew/XAboa9PG+iQoFqtuCTKwn ucuNNepT8NEPLQ/LhdjyDyt+kjLK408mEBBmYh7RMa6Qj21jf5/2arLvdP1vM9861cB9 dHnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=merlin.20170209 header.b=ajM4lt9p; 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 dv18si259500ejb.749.2021.01.26.19.35.11; Tue, 26 Jan 2021 19:35:35 -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=ajM4lt9p; 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 S1728907AbhAZFrv (ORCPT + 99 others); Tue, 26 Jan 2021 00:47:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727942AbhAYMT3 (ORCPT ); Mon, 25 Jan 2021 07:19:29 -0500 Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B417DC061788; Mon, 25 Jan 2021 04:18:35 -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=W1U508PbLkgwTccNSwME/R6sQRgPyIR7/FJo2A8YTu8=; b=ajM4lt9pcZxmzaCaNYOQ5tgX52 nUbHhja1AXzBoo5MXH9nHEEE+EG15rpAKQIUw5iYjfCYXN9+fYcI9x41Ak645sUE0npOUrwInm3VM /Z047ws1ViAH8/08pF9hTVOOEVztOEGInatExkFLUqfw2iJqoUzriwkQmooewCffLV7rRcLE+b/qn 1EbKy8ItUKDTMEVqjNNDmU+lvBaQNrUDwpn4TxyKNnoJdthDIdW6O8o3UOkASatebnVxqd5/EdTeW OKxVkMzZn8GPn6LXQTXUhD8z3QANFXIUl+ddG5cgN0nKvIFVMTM0e8EV4Qv/DUc8ifcYrUgMzVnPX 2yJi1z8g==; 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 1l40oq-0006P0-RS; Mon, 25 Jan 2021 12:18:09 +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 36ABE3010C8; Mon, 25 Jan 2021 13:18:04 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 1FD962B069EF9; Mon, 25 Jan 2021 13:18:04 +0100 (CET) Date: Mon, 25 Jan 2021 13:18:04 +0100 From: Peter Zijlstra To: "Xu, Like" Cc: Sean Christopherson , Andi Kleen , Kan Liang , 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, Like Xu 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> <076a5c7b-de2e-daf9-e6c0-5a42fb38aaa3@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <076a5c7b-de2e-daf9-e6c0-5a42fb38aaa3@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jan 25, 2021 at 08:07:06PM +0800, Xu, Like wrote: > So under the premise that counter cross-mapping is allowed, > how can hypercall help fix it ? Hypercall or otherwise exposing the mapping, will let the guest fix it up when it already touches the data. Which avoids the host from having to access the guest memory and is faster, no?