diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-26 04:49:06 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-26 05:13:02 -0500 |
commit | c462f859f895840e7cd4f20f822ad4c6df2db489 (patch) | |
tree | f270834655c6a86cdf879a5b29a6cbf156ff8792 /arch/x86 | |
parent | 44ac5958a6c1fd91ac8810fbb37194e377d78db5 (diff) |
KVM: xen: flush deferred static key before checking it
A missing flush would cause the static branch to trigger incorrectly.
Cc: David Woodhouse <dwmw@amazon.co.uk>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kvm/x86.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1d2bc89431a2..bfc928495bd4 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -8039,6 +8039,7 @@ void kvm_arch_exit(void) kvm_mmu_module_exit(); free_percpu(user_return_msrs); kmem_cache_destroy(x86_fpu_cache); + static_key_deferred_flush(&kvm_xen_enabled); WARN_ON(static_branch_unlikely(&kvm_xen_enabled.key)); } |