Skip to content

RFC kvm: x86: Cleanup and optimazation of switch_db_regs

Xiaoyao Li kvm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest3 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3kvm: x86: Rename KVM_DEBUGREG_RELOAD to KVM_DEBUGREG_NEED_RELOADarch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+4 -411 replies
2/3kvm: x86: Use KVM_DEBUGREG_NEED_RELOAD instead of KVM_DEBUGREG_BP_ENABLEDarch/x86/include/asm/kvm_host.h arch/x86/kvm/x86.c+3 -42 replies
3/3kvm: x86: skip DRn reload if previous VM exit is DR access VM exitarch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c arch/x86/kvm/x86.c+11 -71 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] kvm: x86: Cleanup and optimazation of switch_db_regs

Through reading debug related codes in kvm/x86, I found the flags of switch_db_regs is a little confusing (at least for me) and there is something to improve. So this patchset comes. But it only go througg compilation.

Xiaoyao Li (3):
kvm: x86: Rename KVM_DEBUGREG_RELOAD to KVM_DEBUGREG_NEED_RELOAD
kvm: x86: Use KVM_DEBUGREG_NEED_RELOAD instead of
KVM_DEBUGREG_BP_ENABLED
kvm: x86: skip DRn reload if previous VM exit is DR access VM exit

 arch/x86/include/asm/kvm_host.h |  3 +--
 arch/x86/kvm/svm/svm.c          |  8 +++++---
 arch/x86/kvm/vmx/vmx.c          |  8 +++++---
 arch/x86/kvm/x86.c              | 12 ++++++------
 4 files changed, 17 insertions(+), 14 deletions(-)
Signature · 1 line
2.20.1