]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4bdfa68e1c6a158f800616fc3aa2d14f3df1e56d
tree06a5fe55ac367d3caabc22c7a3bfddea1ba9a76b
parent8f48b250bbe745a72c328848ac39d2b7b4321082
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