It's more consistent with the rest of the usages of cpu_has_xen_lbr. No functional change intended.
Signed-off-by: Roger Pau Monné <roger....@citrix.com> --- xen/arch/x86/x86_64/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/x86_64/traps.c b/xen/arch/x86/x86_64/traps.c index 9d7f1f818b..24c5067ca2 100644 --- a/xen/arch/x86/x86_64/traps.c +++ b/xen/arch/x86/x86_64/traps.c @@ -156,7 +156,7 @@ void show_registers(const struct cpu_user_regs *regs) printk("CPU: %d\n", smp_processor_id()); _show_registers(&fault_regs, fault_crs, context, v); - if ( ler_msr && !guest_mode(regs) ) + if ( cpu_has_xen_lbr && !guest_mode(regs) ) { u64 from, to; -- 2.36.0