Re: [PATCH 4/5] x86/vmx: handle no model-specific LBR presence

2022-05-30 Thread Jan Beulich
On 20.05.2022 15:37, Roger Pau Monne wrote: > --- a/xen/arch/x86/hvm/vmx/vmx.c > +++ b/xen/arch/x86/hvm/vmx/vmx.c > @@ -3007,6 +3007,8 @@ static const struct lbr_info { > { MSR_GM_LASTBRANCH_0_FROM_IP, NUM_MSR_GM_LASTBRANCH_FROM_TO }, > { MSR_GM_LASTBRANCH_0_TO_IP,NUM_MSR_GM_LASTBRAN

[PATCH 4/5] x86/vmx: handle no model-specific LBR presence

2022-05-20 Thread Roger Pau Monne
Sapphire Rapids have no model-specific LBRs, and instead only expose architectural LBRs. As documented in the Architectural Last Branch Records specification, processors not supporting model-specific LBRs MSR_IA32_DEBUGCTLMSR.LBR has no meaning, and can be written to 0 or 1, but reads will always