Host debug registers are now properly saved and restored before/after
entering the guest.

Signed-off-by: Jan Kiszka <[EMAIL PROTECTED]>
---
 kernel/x86/external-module-compat.h |    2 --
 kernel/x86/hack-module.awk          |    4 ----
 kernel/x86/preempt.c                |    6 ------
 3 files changed, 12 deletions(-)

Index: b/kernel/x86/external-module-compat.h
===================================================================
--- a/kernel/x86/external-module-compat.h
+++ b/kernel/x86/external-module-compat.h
@@ -171,7 +171,6 @@ static inline void preempt_notifier_init
 void start_special_insn(void);
 void end_special_insn(void);
 void in_special_section(void);
-void special_reload_dr7(void);
 
 void preempt_notifier_sys_init(void);
 void preempt_notifier_sys_exit(void);
@@ -181,7 +180,6 @@ void preempt_notifier_sys_exit(void);
 static inline void start_special_insn(void) {}
 static inline void end_special_insn(void) {}
 static inline void in_special_section(void) {}
-static inline void special_reload_dr7(void) {}
 
 static inline void preempt_notifier_sys_init(void) {}
 static inline void preempt_notifier_sys_exit(void) {}
Index: b/kernel/x86/hack-module.awk
===================================================================
--- a/kernel/x86/hack-module.awk
+++ b/kernel/x86/hack-module.awk
@@ -75,10 +75,6 @@ BEGIN { split("INIT_WORK tsc_khz desc_st
 
 { print }
 
-/kvm_x86_ops->run/ {
-    print "\tspecial_reload_dr7();"
-}
-
 /unsigned long flags;/ &&  vmx_load_host_state {
     print "\tunsigned long gsbase;"
 }
Index: b/kernel/x86/preempt.c
===================================================================
--- a/kernel/x86/preempt.c
+++ b/kernel/x86/preempt.c
@@ -40,12 +40,6 @@ static void preempt_enable_sched_in_noti
 #endif
 }
 
-void special_reload_dr7(void)
-{
-       asm volatile ("mov %0, %%db7" : : "r"(0x701ul));
-}
-EXPORT_SYMBOL_GPL(special_reload_dr7);
-
 static void __preempt_disable_notifiers(void)
 {
        asm volatile ("mov %0, %%db7" : : "r"(0ul));

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to