Received: by 2002:ab2:7988:0:b0:1f4:b336:87c4 with SMTP id g8csp111941lqj; Thu, 11 Apr 2024 11:15:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwDBYF3ciZCEOBOSERTOLXewkUhJ9dwsMXZvp6efV+iH1Lta/s1CWAYl6EmlRd3fFuRp9+KEvHp35s4/HenhKJfjyySQx1/lnaasNgAg== X-Google-Smtp-Source: AGHT+IHx0Uscd2hS7qVvkK99uBvreohRnX2JCPrrLkV97s7Tlonmjjx0uG0Xef+PjEj3AaT9fyc8 X-Received: by 2002:a05:6122:d88:b0:4da:9bcd:b097 with SMTP id bc8-20020a0561220d8800b004da9bcdb097mr767836vkb.9.1712859335634; Thu, 11 Apr 2024 11:15:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712859335; cv=pass; d=google.com; s=arc-20160816; b=Li7VvIyREgYTuX2QdVg1PJk1I1aN0nnbSvP967Eu3B6TCPObXFVMKwgb1J91XZss5U qA1Yt8BIry1YvTbUIV6eH+BTW7/k8+fYI+0zuf6CS6IUw2Y8pt37ptzgRwHIQ6wzZ1GC c90V0rwO5kS143yHe7P5Wa2Paw/ZptRX8e2CdcuXvCuhCzHKQHNjuLDq+isfjSft/78B 9NUvpupVgkCbkhTaiHj5a82tZJ2LqrgyVk9UqufioRxN4qya55REK9fLUOezdGzXhtGg xotrSfxLxMzjv36AfXm4PTQ2O4mGeXMK9g8/vBl6Z2gsjc7FS8pocnnPuLf/WP19tKrA w35Q== 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=hPxx2cOLmpTHzmHjiROALvDibzAhms9S+CyTh7DES7I=; fh=4Y4VPuz8lPIj+5xbSMFNK7U7PBDRl655Ve8sR0dPbz8=; b=Yv13SjuIHqYUbaNN9tNs0tunjtb2/KAJvJswaKpVllNpQL6BSKx2YhgAe4ozyt1Zh0 wO0EZQYqovjCdfqtMcIU2VcIofFYerJAs3q1Yqu4nW/LfVLhqR7Ai252fMDS37QhwLq7 dGkPAFAYdPGtbK9TyEHMNdZoUJSP5ovBxy0tjg1GAXPoAOUj0+c8yifxZ/w1RUEbNoFB +F9HyotiDTsgCN4UMYx4cvAL95Ryl+6hfzt8XE4gwaiIOZr1UzcfBcTU5b4s4FXGtKxb Sp9Xr0Z2tIMk9lU7SU3gCuKpFCRAk+M2bBVZhWOY/xV2SKwtdfWXVL2koQ48hAZj+NA6 +IGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="j/lXCewu"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-141393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141393-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l5-20020a0cc205000000b006993a8b9d5csi1964778qvh.344.2024.04.11.11.15.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Apr 2024 11:15:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-141393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="j/lXCewu"; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-141393-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-141393-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 5A5CC1C24392 for ; Thu, 11 Apr 2024 18:15:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11280205E1A; Thu, 11 Apr 2024 17:21:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="j/lXCewu" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 C27FA205E03; Thu, 11 Apr 2024 17:21:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712856086; cv=none; b=ufZv7KwMTuFKrpu8U+cMpiiSuy64y2ZFQ/VLzV2H1gBV/0STqvixB/LHE83vqKgJYz/8N7gMRDuBKe47tUlIK35qpE9huMhXbJVgo+ri5ok25Ob3z+AnSI4NP31TWCqQGR1c84Yv6xvdNCMXYc99lG5l22rWVGphN0bNSQAEgsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712856086; c=relaxed/simple; bh=9ioxE1o8UnG6isr92DEgjeqRWdC/UVqQMVeZumMKxLc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tDQU1C6Kr2fW7ZwgzBMJsLQsGgZCZAirRnSOIIdxbV+cQCQz4CL4JixhmOSbDO4JCSBcpE/BbFGvKhUUcpeKLcbza3k6w5j7C/a6kikDAMKGB/eXd+aLG2qe0I88NdcTWMPt94CBU3SCofu+dc551yeaehLteYs83IBQ4CZwPZY= 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=j/lXCewu; arc=none smtp.client-ip=198.175.65.9 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=1712856085; x=1744392085; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=9ioxE1o8UnG6isr92DEgjeqRWdC/UVqQMVeZumMKxLc=; b=j/lXCewu8wqv3ffh9Xp8jpbCb+HYcdXluQabP+QAhq6DW6CvVJ+/eF52 OZRGeSsAsLj0btUViRrTmlVvx+dORYh7oTeIrUhwShbVhiW3JWQ+rwsIo b9PsDv7h5GVk+6wgSu2wFR5ohaFpXms3DhwCJF9E1J9B/xmBGKNqpvQtZ foXcdPw2zfAnp7fNU5L7aFFxquG0b/YwvqAmkwdbTcKIXDJGBvDwSaHmG BAW6KCw3aT4ajBx81r9b3T+tiVfjKxR2P6Vr9AfrHHaXUDQ32hSrKq/NV 5DJM/pz0XDz3McWEWZr3gcLcTHD81HocpXN7lPHNpeow0VbWcEmKsDkZ5 w==; X-CSE-ConnectionGUID: 9NBRAXkvQ4yADBv+cCYs5w== X-CSE-MsgGUID: c5xu3xg7SPan2vUNChV7YA== X-IronPort-AV: E=McAfee;i="6600,9927,11041"; a="30763755" X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="30763755" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 10:21:25 -0700 X-CSE-ConnectionGUID: tpJNOLeaSk2dvSqvPGUzUw== X-CSE-MsgGUID: xS6IlqjVTVuys+FxOUhtdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,193,1708416000"; d="scan'208";a="51920840" Received: from linux.intel.com ([10.54.29.200]) by orviesa002.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Apr 2024 10:21:24 -0700 Received: from [10.212.101.117] (kliang2-mobl1.ccr.corp.intel.com [10.212.101.117]) (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 CC4C520921D6; Thu, 11 Apr 2024 10:21:21 -0700 (PDT) Message-ID: <56a98cae-36c5-40f8-8554-77f9d9c9a1b0@linux.intel.com> Date: Thu, 11 Apr 2024 13:21:20 -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 01/41] perf: x86/intel: Support PERF_PMU_CAP_VPMU_PASSTHROUGH To: Sean Christopherson , Xiong Zhang Cc: pbonzini@redhat.com, peterz@infradead.org, mizhang@google.com, kan.liang@intel.com, zhenyuw@linux.intel.com, dapeng1.mi@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: <20240126085444.324918-1-xiong.y.zhang@linux.intel.com> <20240126085444.324918-2-xiong.y.zhang@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-04-11 1:04 p.m., Sean Christopherson wrote: > On Fri, Jan 26, 2024, Xiong Zhang wrote: >> From: Kan Liang >> >> Define and apply the PERF_PMU_CAP_VPMU_PASSTHROUGH flag for the version 4 >> and later PMUs > > Why? I get that is an RFC, but it's not at all obvious to me why this needs to > take a dependency on v4+. The IA32_PERF_GLOBAL_STATUS_RESET/SET MSRs are introduced in v4. They are used in the save/restore of PMU state. Please see PATCH 23/41. So it's limited to v4+ for now. Thanks, Kan