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, 0 insertions(+), 12 deletions(-) diff --git a/kernel/x86/external-module-compat.h b/kernel/x86/external-module-compat.h index b5e11e2..1055050 100644 --- a/kernel/x86/external-module-compat.h +++ b/kernel/x86/external-module-compat.h @@ -171,7 +171,6 @@ static inline void preempt_notifier_init(struct preempt_notifier *notifier, 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) {} diff --git a/kernel/x86/hack-module.awk b/kernel/x86/hack-module.awk index 2ad0951..f40c972 100644 --- a/kernel/x86/hack-module.awk +++ b/kernel/x86/hack-module.awk @@ -77,10 +77,6 @@ BEGIN { split("INIT_WORK tsc_khz desc_struct ldttss_desc64 desc_ptr " \ { print } -/kvm_x86_ops->run/ { - print "\tspecial_reload_dr7();" -} - /unsigned long flags;/ && vmx_load_host_state { print "\tunsigned long gsbase;" } diff --git a/kernel/x86/preempt.c b/kernel/x86/preempt.c index 9e4bd2c..3112879 100644 --- a/kernel/x86/preempt.c +++ b/kernel/x86/preempt.c @@ -40,12 +40,6 @@ static void preempt_enable_sched_in_notifiers(void * addr) #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
