]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/cpufeatures: Add X86_FEATURE_X2AVIC_EXT
authorNaveen N Rao <naveen@kernel.org>
Thu, 4 Sep 2025 18:33:06 +0000 (00:03 +0530)
committerSean Christopherson <seanjc@google.com>
Fri, 17 Oct 2025 22:23:45 +0000 (15:23 -0700)
commit5d0316e25defee47c8c7b1b6324244f630b6621f
tree709c1e64123aa983208a33fd8b4403dfccce007d
parent54ffe74cc4ab2e7c6dd0a37a2298fffb642acba7
x86/cpufeatures: Add X86_FEATURE_X2AVIC_EXT

Add CPUID feature bit for x2AVIC extension that enables AMD SVM to
support up to 4096 vCPUs in x2AVIC mode. The primary change is in the
size of the AVIC Physical ID table, which can now go up to 8 contiguous
4k pages. The number of pages allocated is controlled by the maximum
APIC ID for a guest, and that controls the number of pages to allocate
for the AVIC Physical ID table. AVIC hardware is enhanced to look up
Physical ID table entries for vCPUs > 512 for locating the target APIC
backing page and the host APIC ID of the physical core on which the
guest vCPU is running.

Signed-off-by: Naveen N Rao (AMD) <naveen@kernel.org>
Acked-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/e5c9c471ab99a130bf9b728b77050ab308cf8624.1757009416.git.naveen@kernel.org
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/scattered.c