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

Andrew Cooper posted 2 patches 1 year, 3 months ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/20230109120828.344-1-andrew.cooper3@citrix.com
Test gitlab-ci failed
xen/arch/x86/hvm/vmx/vmx.c | 307 +++++++++++++++++++++++----------------------
1 file changed, 155 insertions(+), 152 deletions(-)
[PATCH 0/2] x86/vmx: Don't crash guests when there is no model-specific LBRs available
Posted by Andrew Cooper 1 year, 3 months ago
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(-)

-- 
2.11.0