diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-06-06 21:08:28 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-09 10:52:20 -0400 |
commit | 18869f26df1a11ed11031dfb7392bc7d774062e8 (patch) | |
tree | 0675dbb4cce6d273d89d593b459c55044d0e38b7 /lib/zlib_dfltcc | |
parent | 66c768d30e64e1280520f34dbef83419f55f3459 (diff) | |
download | linux-18869f26df1a11ed11031dfb7392bc7d774062e8.tar.bz2 |
KVM: x86: disable preemption around the call to kvm_arch_vcpu_{un|}blocking
On SVM, if preemption happens right after the call to finish_rcuwait
but before call to kvm_arch_vcpu_unblocking on SVM/AVIC, it itself
will re-enable AVIC, and then we will try to re-enable it again
in kvm_arch_vcpu_unblocking which will lead to a warning
in __avic_vcpu_load.
The same problem can happen if the vCPU is preempted right after the call
to kvm_arch_vcpu_blocking but before the call to prepare_to_rcuwait
and in this case, we will end up with AVIC enabled during sleep -
Ooops.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220606180829.102503-7-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'lib/zlib_dfltcc')
0 files changed, 0 insertions, 0 deletions