Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp733264lqm; Wed, 1 May 2024 14:06:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXR7LzvLJe+FodUiEbjMjfQA92IB8P+Ic4KzohW0J2cPQsIxu4vSnnXjqZ3XqisGmGhf3hNz+NgNUFQKVEqU1i7B/7fgUeKWYV8/dp1tw== X-Google-Smtp-Source: AGHT+IEg7iPeH+vPNTNGsTAHXCLAdN+GEgCWbP58xrrCeo/e9KvRsJtXwAEjhGMICiJ/l41NbjqP X-Received: by 2002:a05:6a20:7293:b0:1aa:6100:3b01 with SMTP id o19-20020a056a20729300b001aa61003b01mr3915509pzk.50.1714597578546; Wed, 01 May 2024 14:06:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714597578; cv=pass; d=google.com; s=arc-20160816; b=kfw6HlWGhKaGgoWwwJTHL6WOWlvo//a+Mqgd6fS1Yie+rqoPl4tUD0aXPgwOwzGnUX q6RPHBtLkSJIHcAAlc4vVJ9MXGOVjTdC46jZMEOKAabsM2eCK0p3CTQn54nlhi4r2N0P J0t55WMTr9vgFMlMiQDJQCOYbCRvmoV0bccOAv+LuaiIEQJ6R5GuyCo+SwzkhfuJBoSd 284IrNrHTO85hxx4dY4yAuuVYzcZGm0Ijk5qiSlLiCNEKhOXMgwa+G/IudRMXcO5AQbX 74oZLlwPegd2f33kmVKPMQjlk9rOGOYDk/Nln8nlqNKoE/6LZ9Kcdcg1QbnyPPQP6NlB vDZg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=k+dIFqMwQZ2aUiDi9ejc2u8LVegSYH+CS+A6rMZQZao=; fh=KJJO1clFBAGvk0XOAb+7mjE0My//eIWmEBU3x6newSU=; b=CElUCEAHtmNf7q3+3YUP07F8lIugD03qIUCJSeJbPPkfnnZ4jerPqv2i0fBJG79fqN OXphKzyIgvHTY8jyeoBKqC/HhQU3r1TGFrSDjAZR2wEewLzQtYuoUFfng9VbkQEXnXwO V+VgbQW8CmKsFoSeHma+zAWrLNFl4qYRO7F4GfU94BUqc9o/FQv7BsEts08NNfhvOn9G A3SuJmM2hYR/LBErNrjgyhkwcQ63mZ7Eukms8MZCbqBhF3Ti4irQo8yyIQ6/B7riujG5 9k8RMuJfg2rwBfkHI92I7Gq7rtcyuT79FqhfLS2uNWRZeAlIGulY27GvTf3TAYPrjAFw bx5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l2U3kks0; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-165671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id i11-20020aa78b4b000000b006ea790f3132si24127287pfd.163.2024.05.01.14.06.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 May 2024 14:06:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-165671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=l2U3kks0; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-165671-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-165671-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 507E4B20C60 for ; Wed, 1 May 2024 18:00:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1E6941474B6; Wed, 1 May 2024 18:00:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="l2U3kks0" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 5FE1F5024E; Wed, 1 May 2024 18:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.16 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714586429; cv=none; b=kpze8KVtXJTtd3fLyoUjE+W5souMCVp3REkYnHzsIVK/E7k34854p8VZRJXgoKnlyzOHSWzyh8AAX3ECxVvn1Y2iEQPduepyE9R5CCx6gtvT4+ve7asz6RjQzTBfBjJb2fpySfDJYt4FcqVlxP7Z+grbw7C+asb5jcHyin9ZrMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714586429; c=relaxed/simple; bh=k+dIFqMwQZ2aUiDi9ejc2u8LVegSYH+CS+A6rMZQZao=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Gc3T49NwV1U7JMS6tKx6kyuB3QvNQvFTKHDrKzrkFy+4OwCUe82vzWLVfQEpj29ExH+hglhe7urPL05AyQd/2BS0xok+yP1P3hvlOyCN9OqWvENyqJfemWPlQLAyu8YuRQBG3bE2q012hR9L6FwbJ8Td0Dl9qO39CrsuVfdFbho= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=l2U3kks0; arc=none smtp.client-ip=198.175.65.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714586427; x=1746122427; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=k+dIFqMwQZ2aUiDi9ejc2u8LVegSYH+CS+A6rMZQZao=; b=l2U3kks0iRB8jYGQG3x1sKgp6MHMsY3puPxNm32woUFqaanu2KzTzTEa UOr0SSlP7ikiSC0miQ2L0e5bFSHON/9I2ua93ajkNMbeOdt45vRF0G29u /Zxn9BYyrnKph7JmXOGCmZZ6X4sSPfNYyQTiwdlOPpareCWccBto+OOEY QwJEk36pJSEYrp5QCBfYtrBhZEopkipFbQrkVFrKAW6XATg9Nn0pk5RPb AYWA/SKdKM+WCMVR9KuUUbXodMbXQwMrJT63CCl/o3dkSkE6Nf602DzLn hUxHQcC9gnuuTWhdlE+wCYHxqT8K+ljZqPeBAw4LuJodqAidnkJuWbo+H A==; X-CSE-ConnectionGUID: zNTOMlCdTUywh+crgY7l9w== X-CSE-MsgGUID: WTeGrNNvRHqeb2hDMKNH/Q== X-IronPort-AV: E=McAfee;i="6600,9927,11061"; a="10454627" X-IronPort-AV: E=Sophos;i="6.07,246,1708416000"; d="scan'208";a="10454627" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa108.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2024 11:00:26 -0700 X-CSE-ConnectionGUID: 6yvooRm2TD+Bsr9luSpjyg== X-CSE-MsgGUID: ykIbpHkiRSai8G40A9GwMQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,246,1708416000"; d="scan'208";a="26817144" Received: from linux.intel.com ([10.54.29.200]) by fmviesa009.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 May 2024 11:00:26 -0700 Received: from [10.212.96.143] (kliang2-mobl1.ccr.corp.intel.com [10.212.96.143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by linux.intel.com (Postfix) with ESMTPS id 2AD8620B5739; Wed, 1 May 2024 11:00:23 -0700 (PDT) Message-ID: Date: Wed, 1 May 2024 14:00:21 -0400 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 23/41] KVM: x86/pmu: Implement the save/restore of PMU state for Intel CPU To: Mingwei Zhang , Sean Christopherson Cc: Dapeng Mi , maobibo , Xiong Zhang , pbonzini@redhat.com, peterz@infradead.org, kan.liang@intel.com, zhenyuw@linux.intel.com, jmattson@google.com, kvm@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, zhiyuan.lv@intel.com, eranian@google.com, irogers@google.com, samantha.alt@intel.com, like.xu.linux@gmail.com, chao.gao@intel.com References: <77913327-2115-42b5-850a-04ef0581faa7@linux.intel.com> <5f5bcbc0-e2ef-4232-a56a-fda93c6a569e@linux.intel.com> Content-Language: en-US From: "Liang, Kan" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 2024-05-01 1:43 p.m., Mingwei Zhang wrote: > One of the things on top of the mind is that: there seems to be no way > for the perf subsystem to express this: "no, your host-level profiling > is not interested in profiling the KVM_RUN loop when our guest vPMU is > actively running". exclude_hv? Although it seems the option is not well supported on X86 for now. Thanks, Kan