diff options
Diffstat (limited to 'include/linux/kvm_host.h')
| -rw-r--r-- | include/linux/kvm_host.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index d12b2104d19b..cc8c61c5459c 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
| @@ -766,7 +766,8 @@ static inline void kvm_guest_enter(void) | |||
| 766 | * one time slice). Lets treat guest mode as quiescent state, just like | 766 | * one time slice). Lets treat guest mode as quiescent state, just like |
| 767 | * we do with user-mode execution. | 767 | * we do with user-mode execution. |
| 768 | */ | 768 | */ |
| 769 | rcu_virt_note_context_switch(smp_processor_id()); | 769 | if (!context_tracking_cpu_is_enabled()) |
| 770 | rcu_virt_note_context_switch(smp_processor_id()); | ||
| 770 | } | 771 | } |
| 771 | 772 | ||
| 772 | static inline void kvm_guest_exit(void) | 773 | static inline void kvm_guest_exit(void) |
