]> xenbits.xensource.com Git - qemu-xen-4.3-testing.git/commitdiff
hw/xen_machine_*: set max_cpus
authorIan Jackson <ian.jackson@eu.citrix.com>
Fri, 24 Oct 2008 18:01:33 +0000 (19:01 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 24 Oct 2008 18:01:33 +0000 (19:01 +0100)
The merged qemu checks the cpus requested against the machine's
max_cpus, so we need to set these to 1.

hw/xen_machine_fv.c
hw/xen_machine_pv.c

index 1f85c5c933ab072d8ffdd768dc79c3c6f99776f6..b85388e5829e2cb3bf091a9316795eed8d1dc4a9 100644 (file)
@@ -289,6 +289,7 @@ QEMUMachine xenfv_machine = {
     "Xen Fully-virtualized PC",
     xen_init_fv,
     (VGA_RAM_SIZE + BIOS_SIZE) | RAMSIZE_FIXED,
+    .max_cpus = 1,
 };
 
 /*
index 798b73540e36a7a9ed8507f724eb5b8d4bd12a8e..9c4e33de796b2cf47f89416d34262aefbfcd7fa6 100644 (file)
@@ -78,6 +78,7 @@ QEMUMachine xenpv_machine = {
     "Xen Para-virtualized PC",
     xen_init_pv,
     (VGA_RAM_SIZE + BIOS_SIZE) | RAMSIZE_FIXED,
+    .max_cpus = 1,
 };
 
 /*