[XEN PATCH 0/2] Enable Bus Lock Detect as rate limiter

Matthew Barnes posted 2 patches 1 month, 2 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://gitlab.com/xen-project/patchew/xen tags/patchew/cover.1710524011.git.matthew.barnes@cloud.com
xen/arch/x86/cpu/common.c              |  5 +++++
xen/arch/x86/hvm/vmx/entry.S           |  6 +++---
xen/arch/x86/include/asm/cpufeature.h  |  2 +-
xen/arch/x86/include/asm/cpufeatures.h |  2 +-
xen/arch/x86/include/asm/debugreg.h    |  1 +
xen/arch/x86/include/asm/msr-index.h   |  1 +
xen/arch/x86/include/asm/msr.h         |  2 ++
xen/arch/x86/msr.c                     |  2 ++
xen/arch/x86/traps.c                   | 16 +++++++++++-----
9 files changed, 27 insertions(+), 10 deletions(-)
[XEN PATCH 0/2] Enable Bus Lock Detect as rate limiter
Posted by Matthew Barnes 1 month, 2 weeks ago
Bus Lock Detect can be used to reduce the effects of DoS in case it
happens.

This patch series enables BLD from MSR_DEBUGCTL if available, and
refines a mechanism to restore MSR_DEBUGCTL upon VMExit to support BLD
as well as LBR.

Said mechanism is also refactored to have a name that reflects generally
restoring the MSR, instead of only one field.

Matthew Barnes (2):
  x86: Enable BLD and handle #DB traps
  x86: Refactor LBR feature into general MSR_DEBUGCTL feature

 xen/arch/x86/cpu/common.c              |  5 +++++
 xen/arch/x86/hvm/vmx/entry.S           |  6 +++---
 xen/arch/x86/include/asm/cpufeature.h  |  2 +-
 xen/arch/x86/include/asm/cpufeatures.h |  2 +-
 xen/arch/x86/include/asm/debugreg.h    |  1 +
 xen/arch/x86/include/asm/msr-index.h   |  1 +
 xen/arch/x86/include/asm/msr.h         |  2 ++
 xen/arch/x86/msr.c                     |  2 ++
 xen/arch/x86/traps.c                   | 16 +++++++++++-----
 9 files changed, 27 insertions(+), 10 deletions(-)

-- 
2.34.1