]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Dedup AVIC vs. PI code for identifying target vCPU
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:31 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Mon, 23 Jun 2025 16:50:29 +0000 (09:50 -0700)
commitcf04ec393ed08b3d0566f0735675639732dca23a
tree87ba9045a4ff4256ad50f4b310ab94dc58dcf210
parent9517aedecd0e73716b766f5c603518fd6e383454
KVM: x86: Dedup AVIC vs. PI code for identifying target vCPU

Hoist the logic for identifying the target vCPU for a posted interrupt
into common x86.  The code is functionally identical between Intel and
AMD.

Tested-by: Sairaj Kodilkar <sarunkod@amd.com>
Link: https://lore.kernel.org/r/20250611224604.313496-30-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/irq.c
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/vmx/posted_intr.c
arch/x86/kvm/vmx/posted_intr.h