Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp1239815lqh; Mon, 6 May 2024 01:04:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4V91vpFKJHS3mcko5VEQxTv6BtlwPeuESw9xQokHsFxABiEuUj00fvjY0MBTi5vJ2FjKIpSRHu2AiO3vgbxUPtpupyqHSLTQ32FFXDw== X-Google-Smtp-Source: AGHT+IE4lggUXMJIVjT4jGEEnJDXQ2KrB2gIaFzDNOkaW49/TDMfC4lVpLNIAwHn8joCsFW/RjUz X-Received: by 2002:a25:fc16:0:b0:de4:6c97:2156 with SMTP id v22-20020a25fc16000000b00de46c972156mr12759805ybd.39.1714982658688; Mon, 06 May 2024 01:04:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714982658; cv=pass; d=google.com; s=arc-20160816; b=bEERb7gVj7mhEz680WnBLKHOlW281Vr/oiLl7m9NY5npb+IRAvRXv4/Aniwey/do/D PdTPBWRGOE+EctTzgO0NYSxu/iVs94B/usV+BIJERFERFQUZaSldou08vK69eOAX0wGS K1UnAL1ie99MHTdJhEJq1WyYcsFpul74yqB1roBjxQn/fMQdFvLFYfbLe9350WIQnEVp 2/3xuA6S2BFui5cDmRcQaO2uriX2zRjDaKju+HVjDRpkwhjVnOrlHcwzeHSCyFxl3hWA MRjdT79kdKDskWW8NVp75bL1borAFH8KabTlrVOcg2Iry5PlmCv8NYACfPYk1dQ+rFuK QF/A== 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=1xNoJHb2mzOSIbIHK6NZFc2yLd8OhR6gQLeXGS3s1Zo=; fh=FE8Y+tyGH6ywcZi/W4hO8WS1uN86171R5+pxE3IU5OY=; b=0Z89sFrCRi5Qtxqyo9OilWBF/uU85FneSXFCwIrB5KfSnawr6yCryZoeqgpE5Lpmju Icf+PRfXYSzNuqtoxZpx3eAxFX2yiVcd3MS7iqmO1wyo6sbeuT+tE7nUcOAnWw43V+vP FVzrGoBIqG+O9njThtGoWcSK13u0FXe2olWMhfwrii3BXloVZHUTW01Tf7OKVtBQJLtK ozvSut3YoA/WmHeVk+wKNvDAgEBYKHFXsErSvWXA0Kqvm3d2J8aluwdRhuKnJ7o5DNwu pRy+WMJvd2fUdqmx9H3MuHZZ4JmFoXLSTKcNmhKe819r3uPjxSy1IfXhb2DSyh/cvLYa 3/pA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=B4MGLNUu; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-169464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169464-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 x15-20020ac85f0f000000b0043757d16df0si8961224qta.610.2024.05.06.01.04.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 May 2024 01:04:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-169464-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=B4MGLNUu; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-169464-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-169464-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 D78271C213AC for ; Mon, 6 May 2024 08:04:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 63F131420D7; Mon, 6 May 2024 08:01:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="B4MGLNUu" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 3B7FE1411D5; Mon, 6 May 2024 08:01:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714982470; cv=none; b=fElVB14ZrzxRO5JvSwr8s2j7bTZRm2iK/hcx4gatsCIOTowO88wV9ej179nkqJwHDzhFzTrgOFqm9m36eGT9Fcecxbw1z7PUfOrk4Plsy5ORduVsNla6aoM0yIzvKqY/m/TGmieqEHUvXuxlw6e/+JmXCSJL7TZ/FTpR01cawyo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714982470; c=relaxed/simple; bh=tJlhUqY9HNh4A9j9IQsCn5qCsKSbKibMtM86koTCU5w=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=C1msYwg3WoG71fBUs0Pq+Eq71/e05vO2OBeqzK/frHFDrz5eSC7Bmj5/uExaOacVqx6dR+eIjmi814RhXZnKqfnnyglzhJ3UfQFiF/lxuphqAMpFW4NRWKCK6Slgu9kQkSvJq4sJn3Zf0yeTdPcFyLgqrm9FoVp8UhRLC74Yc1E= 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=B4MGLNUu; arc=none smtp.client-ip=198.175.65.11 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=1714982467; x=1746518467; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=tJlhUqY9HNh4A9j9IQsCn5qCsKSbKibMtM86koTCU5w=; b=B4MGLNUubw01yAdCWX8PjRxu6PSAMIpB1j8rGMGtYzhyUcN8IOEBRg60 u3MBxefc38g+EI+11ewXp2ekEApkQ/6keK/v/Pkx1pGIZR20kyI95jXDK PIYhwidRKpw6ZP8y1pY9UgRcbH7bseXKhd3FEVHMbZ6Ydlgf5vBYsxrJp 8pVOjks0U9ZspUkD5C9Ql9kl2LKaoSDU6b++0khOsxxqwKkf/hA6TgrZn 7ReBEzsqxyzLQpSsRGxbT31LV33hkx805fXqHZZ6vgPruumLW0hTqRafX ACwjGtdsvopF2ihrqKVHTXdco/EnNd50imUn80cIurXumayHxaihuMNuu A==; X-CSE-ConnectionGUID: t18nPXGmROGWwbU6ygTa4A== X-CSE-MsgGUID: DQR6IWfcQUSx2Ot9iY/KZQ== X-IronPort-AV: E=McAfee;i="6600,9927,11064"; a="21271278" X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="21271278" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 01:01:07 -0700 X-CSE-ConnectionGUID: YawVlKF3S8WjTefksynJ1Q== X-CSE-MsgGUID: uN2dD36QSBi93A6GsgvVpA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,257,1708416000"; d="scan'208";a="32756703" Received: from dapengmi-mobl1.ccr.corp.intel.com (HELO [10.124.225.92]) ([10.124.225.92]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 May 2024 01:01:04 -0700 Message-ID: <82bf53e7-7969-48b6-b954-0eea303c8b39@linux.intel.com> Date: Mon, 6 May 2024 16:01:01 +0800 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: [PATCH 0/2] vPMU code refines To: Mingwei Zhang Cc: Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jim Mattson , Xiong Zhang , Zhenyu Wang , Like Xu , Jinrong Liang , Dapeng Mi References: <20240430005239.13527-1-dapeng1.mi@linux.intel.com> <22b52180-27a2-4df8-a949-401f73440641@linux.intel.com> Content-Language: en-US From: "Mi, Dapeng" In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 5/6/2024 1:35 PM, Mingwei Zhang wrote: > On Sun, May 5, 2024 at 6:37 PM Mi, Dapeng wrote: >> >> On 5/1/2024 2:15 AM, Mingwei Zhang wrote: >>> On Mon, Apr 29, 2024 at 5:45 PM Dapeng Mi wrote: >>>> This small patchset refines the ambiguous naming in kvm_pmu structure >>>> and use macros instead of magic numbers to manipulate FIXED_CTR_CTRL MSR >>>> to increase readability. >>>> >>>> No logic change is introduced in this patchset. >>>> >>>> Dapeng Mi (2): >>>> KVM: x86/pmu: Change ambiguous _mask suffix to _rsvd in kvm_pmu >>> So, it looks like the 1st patch is also in the upcoming RFCv2 for >>> mediated passthrough vPMU. I will remove that from my list then. >> Mingwei, we'd better keep this patch in RFCv2 until the this patchset is >> merged, then we don't rebase it again when this patch is merged. Thanks. >> > yeah. too late. I don't want to have a duplicate patch in LKML. On the > other hand, you could have waited a little bit before sending this > one. Next time, coordinate with us before sending. This patch has nothing to do with the mediated vPMU patchset in theory and can be merged earlier than the mediated vPMU patcheset which may need a long time to review and discuss. I hope this patch can be merged ASAP and so readers won't be mislead by the ambiguous suffix. > > Thanks. > -Mingwei >>> Thanks. Regards >>> -Mingwei >>> >>>> KVM: x86/pmu: Manipulate FIXED_CTR_CTRL MSR with macros >>>> >>>> arch/x86/include/asm/kvm_host.h | 10 ++++----- >>>> arch/x86/kvm/pmu.c | 26 ++++++++++++------------ >>>> arch/x86/kvm/pmu.h | 8 +++++--- >>>> arch/x86/kvm/svm/pmu.c | 4 ++-- >>>> arch/x86/kvm/vmx/pmu_intel.c | 36 +++++++++++++++++++-------------- >>>> 5 files changed, 46 insertions(+), 38 deletions(-) >>>> >>>> >>>> base-commit: 7b076c6a308ec5bce9fc96e2935443ed228b9148 >>>> -- >>>> 2.40.1 >>>>