[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [PATCH 0/5] x86/lbr: handle lack of model-specific LBRs


  • To: Roger Pau Monne <roger.pau@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Fri, 17 Jun 2022 03:24:56 +0000
  • Accept-language: zh-CN, en-US
  • Arc-authentication-results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=lists.xenproject.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dkim=[1,1,header.d=arm.com] dmarc=[1,1,header.from=arm.com])
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GWYQ+mlADmvF9UtpQu6HZVmTpy/QSM8fWlCaRvr8sHA=; b=RSZUEzJdL4/ajK1OLaLM6f5ydn2og91dHJKnGQZZOZ/VWx1GX2Lu4fXfNaxq3Og7WCazSkQMHfyaMz/TjHAeZ7EaskluCRm4blevN+x0bXWoe7bjnbppFtwqq3lGY+2SmBjNK8/ZETI5TyppsvxW0mVbLn9bxS51xsCkuUZSDcL8LchI3W8HBKQDlyx2eCni2rgja06RqIPP1M9azWfJ3COhrpjywFf//+dOx4uJb25s/uP5mr+iUCHzp2L0Z/BB5mp8BPeaHesaP0RMmNslPRcUZYQfpJyEzb1+F1I0wY1rNOBjYi3+x8dlETQfQ+ZE3Ra7i272LrKSoC5sSC6EVw==
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=GWYQ+mlADmvF9UtpQu6HZVmTpy/QSM8fWlCaRvr8sHA=; b=f5+bk8HiuetDCzVOhI0VA0bXwE70z8PjmgxLRtBVOdLV4ppwEqEhhiqKrl/qoOD6PyrEuxAnWU5cxIaRKZDhMJh4XSYlFeybfDKRyDVuI2MV9qBKDFNMI2HJZjbRcljJ8Qqtms1R0DP5fvaS+3ur/JuRjRCVlqJl68XrBoZSx8WWiSUHIFR3omJWioeGjmHSSnVnjyWGolNdhI9LsqzhaSIESsH4pagL/GA5HMAxri0enfGIzoZ1NKmlkC8vniNap5cYiLbSXh5n6VjJBe9MJBzB1No1J6AreGCw8q/7iQv321t/cfEkhWD8EdHHZngDeNRHH1rnGp7R9V7NL4QJvA==
  • Arc-seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=P/YIGBu0O3f+jQFDwNgJGEI36mvBwrlBizNPSrfpjWMGnghTWMB1w0I2kacQMSETJ+mCBh0zGgWPUeg38rEVEv2xlee8LnTkVSttB9UuxVRjZBcqtCWDVJHEV8Z6ATXdsWc+4l1NYCRh46UxbMbYyMkaJfXQ9u8LmhNChQelk15w6dfJpPG6FJnJ91p7HbkyyO/7O4QgGiUxPYvNZ8I7PsjnXBi3ZkU483E0OSjO9yqHDqkB7zp0eLvtFNfqbHdVEQ+9heM/09sGuh/+PvgSbQ5AceWecWi1hJacTY/Z37Q3A18+ap6ZDWOhN7NrNhlPvczbdtaoOjK7ZLKLJzh3ZQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VqpA7YvulkPv1oA/rExoPCWhbXYS1sYaM9oDUxfsdz4V+fTS3lNwYVty6YKOsgt3aRW2rD1YOJdvjPamOBNKvxNWgVOoErPsxDYguRCMu8oX6+2kh/G5PcsQBxmLwpMRO2S6XXIT0dA/UYkKm5aMMyUB3BW8yJ361EMvos/ZUS3y7VAML+hLFu8AV+8VgNYUQRgt7tllAtLTFP4duL+5mDd7zM97bvtXIxL1jZEYlxqa9wqWBmezAgJYK+aH0FAAWEeNvzubdG9I4Qso34H8q4HvV6+62WB7xtGALSbERux2M6a3Gx9Xm4zgYljw3ou9cEsrOJGrM2lvWu0HbYHScQ==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Jun Nakajima <jun.nakajima@xxxxxxxxx>, Kevin Tian <kevin.tian@xxxxxxxxx>
  • Delivery-date: Fri, 17 Jun 2022 03:25:21 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHYbE8ENIrU0fzd30KB0FdsdC25cq1TGGOg
  • Thread-topic: [PATCH 0/5] x86/lbr: handle lack of model-specific LBRs

Hi,

It seems that this series [1] has been stale for a while, with actions needed
from the author for the first 4 patches and comments needed from the
maintainers for the patch#5. So sending this email as a gentle reminder.
Thanks!

[1] https://patchwork.kernel.org/project/xen-devel/list/?series=643625

Kind regards,
Henry

> -----Original Message-----
> From: Xen-devel <xen-devel-bounces@xxxxxxxxxxxxxxxxxxxx> On Behalf Of
> Roger Pau Monne
> Subject: [PATCH 0/5] x86/lbr: handle lack of model-specific LBRs
> 
> Hello,
> 
> Intel Sapphire Rapids CPUs doesn't have model-specific MSRs, and hence
> only architectural LBRs are available.
> 
> Firstly implement some changes so Xen knows how to enable arch LBRs so
> that the ler option can also work in such scenario (first two patches).
> 
> The lack of model-specific LBRs also affects guests, as setting
> DEBUGCTLMSR.LBR is now ignored (value hardwired to 0, writes ignored)
> by
> the hardware due to the lack of model-specific LBRs.  The LBR format
> reported in PERF_CAPABILITIES also need to be exposed, as that's a way
> for guests to detect lack of model-specific LBRs presence (patches 3
> and 4).
> 
> Patch 5 is an indentation fix that can be merged into patch 4: done
> separately to help readability of patch 4.
> 
> Thanks, Roger.
> 
> Roger Pau Monne (5):
>   x86/ler: use feature flag to check if option is enabled
>   x86/lbr: enable hypervisor LER with arch LBR
>   x86/perf: expose LBR format in PERF_CAPABILITIES
>   x86/vmx: handle no model-specific LBR presence
>   x86/vmx: fix indentation of LBR
> 
>  xen/arch/x86/hvm/vmx/vmx.c                  | 59 ++++++++++++++-------
>  xen/arch/x86/include/asm/msr-index.h        | 18 +++++++
>  xen/arch/x86/msr.c                          |  9 ++++
>  xen/arch/x86/traps.c                        | 29 ++++++++--
>  xen/arch/x86/x86_64/traps.c                 |  2 +-
>  xen/include/public/arch-x86/cpufeatureset.h |  3 +-
>  6 files changed, 97 insertions(+), 23 deletions(-)
> 
> --
> 2.36.0
> 


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.