]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: SVM: Track AVIC tables as natively sized pointers, not "struct pages"
authorSean Christopherson <seanjc@google.com>
Wed, 11 Jun 2025 22:45:17 +0000 (15:45 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 20 Jun 2025 20:53:00 +0000 (13:53 -0700)
commit26baab4eea4c135c2a2d2b5529a7a0467fba5bef
treeca342d1c46777e2b0d192bb5dd35f93671fb340c
parentc24ed209c474eae6a0a74beb63faa4184ada64ee
KVM: SVM: Track AVIC tables as natively sized pointers, not "struct pages"

Allocate and track AVIC's logical and physical tables as u32 and u64
pointers respectively, as managing the pages as "struct page" pointers
adds an almost absurd amount of boilerplate and complexity.  E.g. with
page_address() out of the way, svm->avic_physical_id_cache becomes
completely superfluous, and will be removed in a future cleanup.

No functional change intended.

Tested-by: Sairaj Kodilkar <sarunkod@amd.com>
Acked-by: Naveen N Rao (AMD) <naveen@kernel.org>
Link: https://lore.kernel.org/r/20250611224604.313496-16-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/svm.h