Skip to content

x86/vmx: Don't crash guests when there is no model-specific LBRs available

Andrew Cooper xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/vmx: Calculate model-specific LBRs once at start of dayxen/arch/x86/hvm/vmx/vmx.c+139 -1373 replies
2/2x86/vmx: Support for CPUs without model-specific LBRxen/arch/x86/hvm/vmx/vmx.c+16 -152 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchJan BeulichKevin Tian
1/2R-b R-b
2/2R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] x86/vmx: Don't crash guests when there is no model-specific LBRs available

This is the minimum bodge required to stop guests crashing on Sapphire Rapids hardware.

Note that both Arch LBR and safely (in terms of migration) enumerating PDCM/MSR_PERF_CAPS depend on improved MSR levelling support which is still not yet complete.

i.e. We cannot do the second half (enumerating LBR_FORMAT=0x3f) yet because we'll make it more likely for VMs to crash in migrate.

Andrew Cooper (2):
x86/vmx: Calculate model-specific LBRs once at start of day x86/vmx: Support for CPUs without model-specific LBR

 xen/arch/x86/hvm/vmx/vmx.c | 307 +++++++++++++++++++++++----------------------
 1 file changed, 155 insertions(+), 152 deletions(-)
Signature · 1 line
2.11.0