diff options
author | Maxim Levitsky <mlevitsk@redhat.com> | 2022-06-06 21:08:27 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-06-09 17:52:19 +0300 |
commit | 66c768d30e64e1280520f34dbef83419f55f3459 (patch) | |
tree | b07f1f5adf70b878c68c481c75984a0f56d0fa87 /virt | |
parent | 603ccef42ce9f07840cf4c0448f3261413460b07 (diff) | |
download | linux-66c768d30e64e1280520f34dbef83419f55f3459.tar.xz |
KVM: x86: disable preemption while updating apicv inhibition
Currently nothing prevents preemption in kvm_vcpu_update_apicv.
On SVM, If the preemption happens after we update the
vcpu->arch.apicv_active, the preemption itself will
'update' the inhibition since the AVIC will be first disabled
on vCPU unload and then enabled, when the current task
is loaded again.
Then we will try to update it again, which will lead to a warning
in __avic_vcpu_load, that the AVIC is already enabled.
Fix this by disabling preemption in this code.
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220606180829.102503-6-mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions