]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: bump KVM_MAX_VCPU_ID to 1023
authorRadim Krčmář <rkrcmar@redhat.com>
Tue, 12 Jul 2016 20:09:30 +0000 (22:09 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 14 Jul 2016 07:29:35 +0000 (09:29 +0200)
commit5fc2499b66990a56e91ee40d9c099974c93746db
tree1c12ad6dfd42189f9ed58a40f4ddc4913efb177f
parent6cf75885d07ce94294ee62ae50b0182125a19e95
KVM: x86: bump KVM_MAX_VCPU_ID to 1023

kzalloc was replaced with kvm_kvzalloc to allow non-contiguous areas and
rcu had to be modified to cope with it.

The practical limit for KVM_MAX_VCPU_ID right now is INT_MAX, but lower
value was chosen in case there were bugs.  1023 is sufficient maximum
APIC ID for 288 VCPUs.

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/lapic.c
arch/x86/kvm/x86.c