All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: x86: Increase KVM_MAX_VCPUS to 2048
@ 2022-06-13 14:50 Kyle Meyer
  2022-06-13 15:19 ` Vitaly Kuznetsov
  2022-06-13 20:24 ` David Matlack
  0 siblings, 2 replies; 9+ messages in thread
From: Kyle Meyer @ 2022-06-13 14:50 UTC (permalink / raw)
  To: kvm, x86, bp, dave.hansen, mingo, tglx
  Cc: russ.anderson, payton, hpa, jmattson, joro, seanjc, vkuznets,
	wanpengli, Kyle Meyer

Increase KVM_MAX_VCPUS to 2048 so we can run larger virtual machines.

Notable changes:

* KVM_CAP_MAX_VCPUS will return 2048.
* KVM_MAX_VCPU_IDS will increase from 4096 to 8192.
* KVM_HV_MAX_SPARSE_VCPU_SET_BITS will increase from 16 to 32.

* CPUID[HYPERV_CPUID_IMPLEMENT_LIMITS (00x40000005)].EAX will now be 2048.

* struct kvm will increase from 40336 B to 40464 B.
* struct kvm_arch will increase from 34488 B to 34616 B.
* struct kvm_ioapic will increase from 5240 B to 9848 B.

* vcpu_mask in kvm_hv_flush_tlb will increase from 128 B to 256 B.
* vcpu_mask in kvm_hv_send_ipi will increase from 128 B to 256 B.
* vcpu_bitmap in ioapic_write_indirect will increase from 128 B to 256 B.
* vp_bitmap in sparse_set_to_vcpu_mask will increase from 128 B to 256 B.
* sparse_banks in kvm_hv_flush_tlb will increase from 128 B to 256 B.
* sparse_banks in kvm_hv_send_ipi will increase from 128 B to 256 B.

Signed-off-by: Kyle Meyer <kyle.meyer@hpe.com>
---
 arch/x86/include/asm/kvm_host.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 3a240a64ac68..58653c63899f 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -38,7 +38,7 @@
 
 #define __KVM_HAVE_ARCH_VCPU_DEBUGFS
 
-#define KVM_MAX_VCPUS 1024
+#define KVM_MAX_VCPUS 2048
 
 /*
  * In x86, the VCPU ID corresponds to the APIC ID, and APIC IDs
-- 
2.26.2


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-07-07 17:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-13 14:50 [PATCH] KVM: x86: Increase KVM_MAX_VCPUS to 2048 Kyle Meyer
2022-06-13 15:19 ` Vitaly Kuznetsov
2022-06-13 20:24 ` David Matlack
2022-06-14  8:27   ` Vitaly Kuznetsov
2022-06-16 16:47     ` David Matlack
2022-06-16 16:58       ` Sean Christopherson
2022-06-29 20:38         ` [PATCH v2] KVM: x86: Increase KVM_MAX_VCPUS to 4096 Kyle Meyer
2022-06-30  8:09           ` Vitaly Kuznetsov
2022-07-07 17:03             ` Sean Christopherson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.