On 18.11.2024 09:49, [email protected] wrote:
> --- a/xen/arch/x86/include/asm/msr-index.h
> +++ b/xen/arch/x86/include/asm/msr-index.h
> @@ -304,6 +304,17 @@
>  #define MSR_IA32_LASTINTFROMIP               0x000001dd
>  #define MSR_IA32_LASTINTTOIP         0x000001de
>  
> +/* Architectural LBR state MSRs */
> +#define MSR_IA32_LASTBRANCH_CTL              0x000014ce
> +#define  LASTBRANCH_CTL_LBREN                (1<<0) /* Enable LBR recording 
> */
> +#define  LASTBRANCH_CTL_VALID                _AC(0x7f000f, ULL)
> +#define MSR_IA32_LASTBRANCH_DEPTH    0x000014cf
> +#define MSR_IA32_LER_INFO            0x000001e0
> +#define MSR_IA32_LASTBRANCH_0_INFO   0x00001200
> +#define MSR_IA32_LASTBRANCH_0_FROM_IP        0x00001500
> +#define MSR_IA32_LASTBRANCH_0_TO_IP  0x00001600
> +#define MAX_MSR_ARCH_LASTBRANCH_FROM_TO      64

This is rather NUM than MAX; MAX would be 63.

Jan


Reply via email to