mbox series

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

Message ID cover.1740036492.git.naveen@kernel.org (mailing list archive)
Headers show
Series KVM: SVM: Add support for 4096 vcpus with x2AVIC | expand

Message

Naveen N Rao (AMD) Feb. 20, 2025, 7:38 a.m. UTC
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