]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: VMX: Move Posted Interrupt ndst computation out of write loop
authorSean Christopherson <seanjc@google.com>
Sat, 9 Oct 2021 02:12:20 +0000 (19:12 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Dec 2021 09:24:57 +0000 (04:24 -0500)
commit1f9e6471a292b55590b50a3c60907a2e60d6cd44
tree2df60d35620ee8b6100b3e3dce2b7dbac10601e0
parent28a583fd346c8c1d8dfe1f3ddbdfabd39b3cdd89
KVM: VMX: Move Posted Interrupt ndst computation out of write loop

Hoist the CPU => APIC ID conversion for the Posted Interrupt descriptor
out of the loop to write the descriptor, preemption is disabled so the
CPU won't change, and if the APIC ID changes KVM has bigger problems.

No functional change intended.

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