[PATCH v3 0/2] KVM: SVM: Add support for 4096 vcpus with x2AVIC
From: Naveen N Rao (AMD)
Date: Thu Feb 20 2025 - 02:42:02 EST
This is v3 of the series posted at:
http://lkml.kernel.org/r/cover.1738563890.git.naveen@xxxxxxxxxx
The first patch adds support for up to 4096 vcpus with x2AVIC, while the
second patch limits the value that is programmed into
AVIC_PHYSICAL_MAX_INDEX in the VMCB based on the max APIC ID indicated
by the VMM.
Changes since v2:
- Patch 1: Free allocated pages in avic_vm_destroy()
- Patch 2: Rename x2apic_mode parameter of avic_get_max_physical_id() to
just x2apic to avoid build issue with similarly named global variable.
- Naveen
Naveen N Rao (AMD) (1):
KVM: SVM: Limit AVIC physical max index based on configured
max_vcpu_ids
Suravee Suthikulpanit (1):
KVM: SVM: Increase X2AVIC limit to 4096 vcpus
arch/x86/include/asm/svm.h | 4 ++
arch/x86/kvm/svm/avic.c | 82 ++++++++++++++++++++++++++++----------
arch/x86/kvm/svm/svm.c | 6 +++
arch/x86/kvm/svm/svm.h | 1 +
4 files changed, 73 insertions(+), 20 deletions(-)
base-commit: fed48e2967f402f561d80075a20c5c9e16866e53
--
2.48.1