diff options
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/x86.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 35eea30821d6..106f9f1f78c0 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -201,6 +201,14 @@ void kvm_set_shared_msr(unsigned slot, u64 value) | |||
201 | } | 201 | } |
202 | EXPORT_SYMBOL_GPL(kvm_set_shared_msr); | 202 | EXPORT_SYMBOL_GPL(kvm_set_shared_msr); |
203 | 203 | ||
204 | static void drop_user_return_notifiers(void *ignore) | ||
205 | { | ||
206 | struct kvm_shared_msrs *smsr = &__get_cpu_var(shared_msrs); | ||
207 | |||
208 | if (smsr->registered) | ||
209 | kvm_on_user_return(&smsr->urn); | ||
210 | } | ||
211 | |||
204 | unsigned long segment_base(u16 selector) | 212 | unsigned long segment_base(u16 selector) |
205 | { | 213 | { |
206 | struct descriptor_table gdt; | 214 | struct descriptor_table gdt; |
@@ -5004,6 +5012,7 @@ int kvm_arch_hardware_enable(void *garbage) | |||
5004 | void kvm_arch_hardware_disable(void *garbage) | 5012 | void kvm_arch_hardware_disable(void *garbage) |
5005 | { | 5013 | { |
5006 | kvm_x86_ops->hardware_disable(garbage); | 5014 | kvm_x86_ops->hardware_disable(garbage); |
5015 | drop_user_return_notifiers(garbage); | ||
5007 | } | 5016 | } |
5008 | 5017 | ||
5009 | int kvm_arch_hardware_setup(void) | 5018 | int kvm_arch_hardware_setup(void) |