mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-25 15:02:45 +00:00
kernel: use the maximum number of CPUs supported by KVM
Since we don't know how many CPUs can have the host, we should use the maximum number of CPUs supported by KVM (240). 255 is the maximum number of CPUs supported in the kernel, but the maximmum number of CPUs recommended by KVM is 240, if more than 240 CPUs are used, next error will be returned by QEMU ``` Number of hotpluggable cpus requested (255) exceeds the recommended cpus supported by KVM (240) ``` fixes #922 fixes kata-containers/runtime#2413 Signed-off-by: Julio Montes <julio.montes@intel.com>
This commit is contained in:
parent
03573d4528
commit
ba68012480
@ -3,3 +3,6 @@ CONFIG_X86_CPUID=y
|
||||
CONFIG_X86_MSR=y
|
||||
CONFIG_X86_X2APIC=y
|
||||
CONFIG_X86_VERBOSE_BOOTUP=y
|
||||
|
||||
# Use the maximum number of CPUs supported by KVM (240)
|
||||
CONFIG_NR_CPUS=240
|
||||
|
@ -1 +1 @@
|
||||
63
|
||||
64
|
||||
|
Loading…
Reference in New Issue
Block a user