[PATCH v3 0/2] KVM: SVM: Add support for 4096 vcpus with x2AVIC

Naveen N Rao (AMD) posted 2 patches 10 months ago
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(-)
[PATCH v3 0/2] KVM: SVM: Add support for 4096 vcpus with x2AVIC
Posted by Naveen N Rao (AMD) 10 months ago
This is v3 of the series posted at:
http://lkml.kernel.org/r/cover.1738563890.git.naveen@kernel.org

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
Re: [PATCH v3 0/2] KVM: SVM: Add support for 4096 vcpus with x2AVIC
Posted by Vasant Hegde 9 months ago
On 2/20/2025 1:08 PM, Naveen N Rao (AMD) wrote:
> This is v3 of the series posted at:
> http://lkml.kernel.org/r/cover.1738563890.git.naveen@kernel.org
> 
> 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.

Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>

-Vasant