]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: x86: Add helpers to handle 64-bit APIC MSR read/writes
authorSean Christopherson <seanjc@google.com>
Fri, 4 Feb 2022 21:42:02 +0000 (21:42 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Feb 2022 13:20:22 +0000 (08:20 -0500)
commit8084664ef52bcd25831ecc1c29fab2ddaeda05e5
tree3ab2874cfbe7b6f97496b5d0d820f612c6215815
parent6de0c4434feabdd78fcdb77f7196c05a1d367cdb
KVM: x86: Add helpers to handle 64-bit APIC MSR read/writes

Add helpers to handle 64-bit APIC read/writes via MSRs to deduplicate the
x2APIC and Hyper-V code needed to service reads/writes to ICR.  Future
support for IPI virtualization will add yet another path where KVM must
handle 64-bit APIC MSR reads/write (to ICR).

Opportunistically fix the comment in the write path; ICR2 holds the
destination (if there's no shorthand), not the vector.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220204214205.3306634-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c