aboutsummaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJes Sorensen <jes@sgi.com>2009-07-23 17:03:42 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-27 14:09:14 -0500
commit6be68d7eb9037fa3b8ef18901e5c02c120463efd (patch)
tree437edcdccb370dabe02689387a6283df341e3a72 /hw
parent96c1606b33a64ea6d5e1a988f9eb234a58947002 (diff)
Introduce -smp , maxcpus= flag to specify maximum number of CPUS.
Follow on patch will use it to determine the size of the MADT and other BIOS tables. Signed-off-by: Jes Sorensen <jes@sgi.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fw_cfg.c1
-rw-r--r--hw/fw_cfg.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/fw_cfg.c b/hw/fw_cfg.c
index d75cce46f..518f280f6 100644
--- a/hw/fw_cfg.c
+++ b/hw/fw_cfg.c
@@ -279,6 +279,7 @@ void *fw_cfg_init(uint32_t ctl_port, uint32_t data_port,
fw_cfg_add_bytes(s, FW_CFG_UUID, qemu_uuid, 16);
fw_cfg_add_i16(s, FW_CFG_NOGRAPHIC, (uint16_t)(display_type == DT_NOGRAPHIC));
fw_cfg_add_i16(s, FW_CFG_NB_CPUS, (uint16_t)smp_cpus);
+ fw_cfg_add_i16(s, FW_CFG_MAX_CPUS, (uint16_t)max_cpus);
fw_cfg_add_i16(s, FW_CFG_BOOT_MENU, (uint16_t)boot_menu);
register_savevm("fw_cfg", -1, 1, fw_cfg_save, fw_cfg_load, s);
diff --git a/hw/fw_cfg.h b/hw/fw_cfg.h
index 9fee18100..30dfec7c6 100644
--- a/hw/fw_cfg.h
+++ b/hw/fw_cfg.h
@@ -16,6 +16,7 @@
#define FW_CFG_BOOT_DEVICE 0x0c
#define FW_CFG_NUMA 0x0d
#define FW_CFG_BOOT_MENU 0x0e
+#define FW_CFG_MAX_CPUS 0x0f
#define FW_CFG_MAX_ENTRY 0x10
#define FW_CFG_WRITE_CHANNEL 0x4000