Hi,
v1: https://lore.kernel.org/xen-devel/20260120095353.2778-1-alejandro.garciavallejo@amd.com
pipeline (in progress):
https://gitlab.com/xen-project/people/agvallejo/xen/-/pipelines/2276726870
Original cover letter:
Bus Locks are very costly and a VM left unchecked spamming instructions that
lock the memory bus (e.g: unaligned atomic CAS) makes system perf take a
nosedive. This patch is similar to BLD of VMX, but for SVM. It configures all
VMRUNs so they automatically exit at the first encounter of a buslock event,
effectively rate-limiting them.
Cheers,
Alejandro
Alejandro Vallejo (3):
x86/svm: Add infrastructure for Bus Lock Threshold
x86/svm: Intercept Bus Locks for HVM guests
CHANGELOG: Note the new SVM bus-lock intercept
CHANGELOG.md | 3 +++
xen/arch/x86/hvm/svm/svm.c | 6 ++++++
xen/arch/x86/hvm/svm/vmcb.c | 3 +++
xen/arch/x86/hvm/svm/vmcb.h | 15 +++++++++++++--
xen/arch/x86/include/asm/hvm/svm.h | 2 ++
xen/arch/x86/include/asm/perfc_defn.h | 2 +-
6 files changed, 28 insertions(+), 3 deletions(-)
base-commit: 61204ed24ba4537d6eff56594faa5d23cacb8310
--
2.43.0