/qemu/hw/core/ |
H A D | machine-smp.c | 98 unsigned maxcpus = config->has_maxcpus ? config->maxcpus : 0; in machine_parse_smp_config() local 114 (config->has_maxcpus && config->maxcpus == 0)) { in machine_parse_smp_config() 165 if (cpus == 0 && maxcpus == 0) { in machine_parse_smp_config() 170 maxcpus = maxcpus > 0 ? maxcpus : cpus; in machine_parse_smp_config() 177 sockets = maxcpus / in machine_parse_smp_config() 182 cores = maxcpus / in machine_parse_smp_config() 191 cores = maxcpus / in machine_parse_smp_config() 196 sockets = maxcpus / in machine_parse_smp_config() 204 threads = maxcpus / in machine_parse_smp_config() 212 maxcpus = maxcpus > 0 ? maxcpus : total_cpus; in machine_parse_smp_config() [all …]
|
H A D | machine.c | 930 .has_maxcpus = true, .maxcpus = ms->smp.max_cpus, in machine_get_smp()
|
/qemu/tests/qtest/ |
H A D | cpu-plug-test.c | 23 unsigned maxcpus; member 40 td->sockets, td->cores, td->threads, td->maxcpus); in test_plug_with_device_add() 97 data->maxcpus = data->sockets * data->cores * data->threads; in add_pc_test_case() 101 data->threads, data->maxcpus); in add_pc_test_case() 123 data->maxcpus = data->sockets * data->cores * data->threads; in add_pseries_test_case() 127 data->threads, data->maxcpus); in add_pseries_test_case() 149 data->maxcpus = data->sockets * data->cores * data->threads; in add_s390x_test_case() 153 data->threads, data->maxcpus); in add_s390x_test_case() 171 data->maxcpus = data->sockets * data->cores * data->threads; in add_loongarch_test_case() 175 data->threads, data->maxcpus); in add_loongarch_test_case()
|
/qemu/tests/unit/ |
H A D | test-smp-parse.c | 38 .has_maxcpus = he, .maxcpus = e, \ 63 .has_maxcpus = hg, .maxcpus = g, \ 77 .has_maxcpus = hf, .maxcpus = f, \ 93 .has_maxcpus = hg, .maxcpus = g, \ 112 .has_maxcpus = true, .maxcpus = j, \ 728 config->has_maxcpus ? "true" : "false", config->maxcpus); in smp_config_to_string() 1076 data.config.maxcpus *= num_modules; in test_with_modules() 1126 data.config.maxcpus *= num_dies; in test_with_dies() 1184 data.config.maxcpus *= num_modules * num_dies; in test_with_modules_dies() 1237 data.config.maxcpus *= num_clusters; in test_with_clusters() [all …]
|
/qemu/docs/system/s390x/ |
H A D | cpu-topology.rst | 67 -smp cpus=5,drawer=1,books=1,sockets=8,cores=4,maxcpus=32 73 -smp cpus=5,sockets=8,cores=4,maxcpus=32 139 -smp cpus=5,sockets=8,cores=4,maxcpus=32 \ 149 starting with core 0 in socket 0 up to maxcpus. 234 -smp cpus=1,sockets=8,cores=4,maxcpus=32 \
|
/qemu/docs/system/arm/ |
H A D | xlnx-versal-virt.rst | 120 …setenv bootargs "rdinit=/sbin/init maxcpus=1 console=ttyAMA0,115200n8 earlycon=pl011,mmio,0xFF0000… 145 …en-bootargs "console=dtuart dtuart=/uart@ff000000 dom0_mem=640M bootscrub=0 maxcpus=1 timer_slop=0" 146 fdt set /chosen xen,dom0-bootargs "rdinit=/sbin/init clk_ignore_unused console=hvc0 maxcpus=1" 174 …en-bootargs "console=dtuart dtuart=/uart@ff000000 dom0_mem=640M bootscrub=0 maxcpus=1 timer_slop=0" 175 fdt set /chosen xen,dom0-bootargs "rdinit=/sbin/init clk_ignore_unused console=hvc0 maxcpus=1"
|
/qemu/docs/system/ |
H A D | cpu-hotplug.rst | 11 (1) Launch QEMU as follows (note that the "maxcpus" is mandatory to 16 -smp 1,maxcpus=2 -cpu IvyBridge-IBRS \
|
/qemu/include/system/ |
H A D | kvm_int.h | 61 unsigned int maxcpus; member
|
/qemu/docs/system/i386/ |
H A D | xenpvh.rst | 46 -smp 4,maxcpus=4 \
|
/qemu/docs/devel/ |
H A D | s390-cpu-topology.rst | 15 -smp 1,drawers=3,books=3,sockets=2,cores=2,maxcpus=36 \
|
/qemu/qapi/ |
H A D | machine.json | 1060 # ``-smp 2,cores=2,maxcpus=4 -cpu POWER8``:: 1073 # For pc machine type started with ``-smp 1,maxcpus=2``:: 1092 # ``-smp 1,maxcpus=2 -cpu qemu``:: 1665 # The members other than @cpus and @maxcpus define a topology of 1679 # @maxcpus: maximum number of hotpluggable virtual CPUs in the virtual 1710 '*maxcpus': 'int' } }
|
/qemu/docs/specs/ |
H A D | ppc-spapr-hotplug.rst | 427 of a triple consisting of ``<phys>``, ``<size>`` and ``<maxcpus>``. 435 ``<maxcpus>``, a BE-encoded integer, represents the maximum number of
|
/qemu/docs/about/ |
H A D | removed-features.rst | 210 where *n* <= *sockets* * *cores* * *threads* < *maxcpus*, 214 *sockets* * *cores* * *threads* = *maxcpus*.
|
/qemu/ |
H A D | qemu-options.hx | 324 "-smp [[cpus=]n][,maxcpus=maxcpus][,drawers=drawers][,books=books][,sockets=sockets]\n" 328 " maxcpus= maximum number of total CPUs, including\n" 352 ``-smp [[cpus=]n][,maxcpus=maxcpus][,drawers=drawers][,books=books][,sockets=sockets][,dies=dies][,… 355 '\ ``maxcpus``\ ' parameter can be set to enable further CPUs to be 388 -smp 8,sockets=2,cores=2,threads=2,maxcpus=8 398 -smp 32,sockets=2,dies=2,modules=2,cores=2,threads=2,maxcpus=32 408 -smp 16,sockets=2,clusters=2,cores=2,threads=2,maxcpus=16 480 -smp 1,sockets=2,maxcpus=2 \ 519 -smp 2,sockets=2,maxcpus=2 \ 587 -smp 2,sockets=2,maxcpus=2 \
|
/qemu/target/i386/kvm/ |
H A D | kvm.c | 2994 r->host_topo.maxcpus = vmsr_get_maxcpus(); in kvm_msr_energy_thread_init() 2995 if (r->host_topo.maxcpus == 0) { in kvm_msr_energy_thread_init() 3001 r->host_topo.maxpkgs = vmsr_get_max_physical_package(r->host_topo.maxcpus); in kvm_msr_energy_thread_init()
|