KVM: nVMX: clean up posted interrupt descriptor try_cmpxchg
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 15:45:45 +0000 (11:45 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 15:45:45 +0000 (11:45 -0400)
commit4de5c54f8c806621ab055eeb240877d75d53b208
treed5d61b408c3ee92b86f0a59ded29d34941a3b151
parent4b88b1a518b337de1252b8180519ca4c00015c9e
KVM: nVMX: clean up posted interrupt descriptor try_cmpxchg

Rely on try_cmpxchg64 for re-reading the PID on failure, using READ_ONCE
only right before the first iteration.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/posted_intr.c