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 (2): x86/svm: Add infrastructure for Bus Lock Threshold x86/svm: Intercept Bus Locks for HVM guests xen/arch/x86/hvm/svm/svm.c | 5 +++++ xen/arch/x86/hvm/svm/vmcb.c | 6 ++++++ 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 +- 5 files changed, 27 insertions(+), 3 deletions(-) base-commit: 7b3e1b4e848d34c9a5b6634009959a7b9dd42104 -- 2.43.0
