]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Fold "struct dest_map" into "struct rtc_status"
authorSean Christopherson <seanjc@google.com>
Sat, 6 Dec 2025 00:43:09 +0000 (16:43 -0800)
committerSean Christopherson <seanjc@google.com>
Mon, 12 Jan 2026 17:31:41 +0000 (09:31 -0800)
commit5cd6b1a6eebd564104897ca87be2812d8feafad4
tree437661c691041b2b99909c86df1c3a9ba194e74e
parent1a5d7f9540af1416402887435e4537dcef36a4b2
KVM: x86: Fold "struct dest_map" into "struct rtc_status"

Drop "struct dest_map" and fold its members into its one and only user,
"struct rtc_status".  Tracking "pending" EOIs and associated vCPUs is very
much a hack for legacy RTC behavior, and should never be needed for other
IRQ delivery.  In addition to making it more obvious why KVM tracks target
vCPUs, this will allow burying the "struct rtc_status" definition behind
CONFIG_KVM_IOAPIC=y, which in turn will make it even harder for KVM to
misuse the structure.

No functional change intended.

Link: https://patch.msgid.link/20251206004311.479939-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/ioapic.c
arch/x86/kvm/ioapic.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h