mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
machine struct - specify max_cpus at the per machine level (Jes Sorensen)
Introduce a max_cpus per-machine variable, allowing individual boards to limit it's number of CPUs. Check requested number of CPUs in setup code and exit if it exceeds the supported number for the machine. This also renders the static MAX_CPUS check obsolete, so remove this from vl.c. Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5443 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
4b32e16880
commit
b2097003ec
30 changed files with 59 additions and 8 deletions
|
@ -278,6 +278,7 @@ QEMUMachine mips_magnum_machine = {
|
|||
.init = mips_magnum_init,
|
||||
.ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE,
|
||||
.nodisk_ok = 1,
|
||||
.max_cpus = 1,
|
||||
};
|
||||
|
||||
QEMUMachine mips_pica61_machine = {
|
||||
|
@ -286,4 +287,5 @@ QEMUMachine mips_pica61_machine = {
|
|||
.init = mips_pica61_init,
|
||||
.ram_require = MAGNUM_BIOS_SIZE + VGA_RAM_SIZE,
|
||||
.nodisk_ok = 1,
|
||||
.max_cpus = 1,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue