This series realizes the debug register switch optimization Avi suggested, but now in a KGDB-safe way. It furthermore cleans up the DR6 optimization as discussed earlier. And it improves the debug register emulation for both VMX and SVM. Note that the series applies on top of kvm.git next. Find this series also at git://git.kiszka.org/linux-kvm.git queues/debugregs Jan Kiszka (6): KGDB: Add kgdb_in_use KVM: x86: Optimize debug register switching KVM: VMX: Clean up DR6 emulation KVM: VMX: Fix emulation of DR4 and DR5 KVM: SVM: Enable full MOV DR emulation KVM: SVM: Trap all debug register accesses arch/x86/include/asm/kvm_host.h | 5 +- arch/x86/kvm/svm.c | 86 ++++++++++++++++++++++++-------------- arch/x86/kvm/vmx.c | 55 ++++++++++++++---------- arch/x86/kvm/x86.c | 67 ++++++++++++++++-------------- include/linux/kgdb.h | 17 ++++++++ 5 files changed, 140 insertions(+), 90 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html