mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
added -numa cmdline parameter parser (Andre Przywara)
adds a -numa command line parameter and sets a QEMU global array with the memory sizes. The CPU-to-node assignemnt is written into the CPUState. If no specific values for memory and CPUs are given, all resources will be split equally across all nodes. This code currently support only up to 64 virtual CPUs. Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7210 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
754d00ae3a
commit
268a362c63
5 changed files with 144 additions and 5 deletions
1
exec.c
1
exec.c
|
@ -554,6 +554,7 @@ void cpu_exec_init(CPUState *env)
|
|||
cpu_index++;
|
||||
}
|
||||
env->cpu_index = cpu_index;
|
||||
env->numa_node = 0;
|
||||
TAILQ_INIT(&env->breakpoints);
|
||||
TAILQ_INIT(&env->watchpoints);
|
||||
*penv = env;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue