[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250725220713.264711-2-seanjc@google.com>
Date: Fri, 25 Jul 2025 15:07:01 -0700
From: Sean Christopherson <seanjc@...gle.com>
To: Paolo Bonzini <pbonzini@...hat.com>
Cc: kvm@...r.kernel.org, linux-kernel@...r.kernel.org,
Sean Christopherson <seanjc@...gle.com>
Subject: [GIT PULL] KVM: x86: Local APIC refactoring for 6.17
Move most of KVM's local APIC helpers to common x86 (with new names that are
better suited for global symbols) so that they can be shared by Secure AVIC
(guest side) support[*]. The actual Secure AVIC support is likely destined
for 6.18 or later, and will go through the tip tree (shouldn't have to touch
anything KVM related).
[*] https://lore.kernel.org/all/20250709033242.267892-1-Neeraj.Upadhyay@amd.com
The following changes since commit d7b8f8e20813f0179d8ef519541a3527e7661d3a:
Linux 6.16-rc5 (2025-07-06 14:10:26 -0700)
are available in the Git repository at:
https://github.com/kvm-x86/linux.git tags/kvm-x86-apic-6.17
for you to fetch changes up to b95a9d313642c9f3abebb77a04b41bb7bdd0feef:
x86/apic: Rename 'reg_off' to 'reg' (2025-07-10 09:44:44 -0700)
----------------------------------------------------------------
KVM local APIC changes for 6.17
Extract many of KVM's helpers for accessing architectural local APIC state
to common x86 so that they can be shared by guest-side code for Secure AVIC.
----------------------------------------------------------------
Neeraj Upadhyay (13):
KVM: x86: Open code setting/clearing of bits in the ISR
KVM: x86: Remove redundant parentheses around 'bitmap'
KVM: x86: Rename VEC_POS/REG_POS macro usages
KVM: x86: Change lapic regs base address to void pointer
KVM: x86: Rename find_highest_vector()
KVM: x86: Rename lapic get/set_reg() helpers
KVM: x86: Rename lapic get/set_reg64() helpers
KVM: x86: Rename lapic set/clear vector helpers
x86/apic: KVM: Move apic_find_highest_vector() to a common header
x86/apic: KVM: Move lapic get/set helpers to common code
x86/apic: KVM: Move lapic set/clear_vector() helpers to common code
x86/apic: KVM: Move apic_test)vector() to common code
x86/apic: Rename 'reg_off' to 'reg'
Sean Christopherson (1):
x86/apic: KVM: Deduplicate APIC vector => register+bit math
arch/x86/include/asm/apic.h | 66 +++++++++++++++++++++++++++++-
arch/x86/kvm/lapic.c | 97 ++++++++++++---------------------------------
arch/x86/kvm/lapic.h | 24 ++---------
3 files changed, 94 insertions(+), 93 deletions(-)
Powered by blists - more mailing lists