KVM: VMX: Drop unnecessary PI logic to handle impossible conditions
authorSean Christopherson <seanjc@google.com>
Sat, 9 Oct 2021 02:12:15 +0000 (19:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:55 +0000 (04:24 -0500)
commitc95717218add161f3e93bd454743506ed5bdd8e1
tree06a5fe55ac367d3caabc22c7a3bfddea1ba9a76b
parent057aa61bc992f2d27218b6558b0115d5623f1a7b
KVM: VMX: Drop unnecessary PI logic to handle impossible conditions

Drop sanity checks on the validity of the previous pCPU when handling
vCPU block/unlock for posted interrupts.  The intention behind the sanity
checks is to avoid memory corruption in case of a race or incorrect locking,
but the code has been stable for a few years now and the checks get in
the way of eliminating kvm_vcpu.pre_cpu.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211009021236.4122790-23-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/posted_intr.c