diff options
author | 2022-03-01 09:05:09 -0800 | |
---|---|---|
committer | 2022-03-01 12:21:23 -0500 | |
commit | b652de1e3dfb3b49e539e88a684a68e333e1bd7c (patch) | |
tree | ae1afcfc756c1caea6d1d07a30b5618cdaab8aa7 /mm | |
parent | KVM: SVM: Exit to userspace on ENOMEM/EFAULT GHCB errors (diff) | |
download | wireguard-linux-b652de1e3dfb3b49e539e88a684a68e333e1bd7c.tar.xz wireguard-linux-b652de1e3dfb3b49e539e88a684a68e333e1bd7c.zip |
KVM: SVM: Disable preemption across AVIC load/put during APICv refresh
Disable preemption when loading/putting the AVIC during an APICv refresh.
If the vCPU task is preempted and migrated ot a different pCPU, the
unprotected avic_vcpu_load() could set the wrong pCPU in the physical ID
cache/table.
Pull the necessary code out of avic_vcpu_{,un}blocking() and into a new
helper to reduce the probability of introducing this exact bug a third
time.
Fixes: df7e4827c549 ("KVM: SVM: call avic_vcpu_load/avic_vcpu_put when enabling/disabling AVIC")
Cc: stable@vger.kernel.org
Reported-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions