From 8dd92810e6dd03cdaadd6325ecc02a7b76df0bc5 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 24 Oct 2008 19:01:33 +0100 Subject: [PATCH] hw/xen_machine_*: set max_cpus 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 | 1 + hw/xen_machine_pv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/hw/xen_machine_fv.c b/hw/xen_machine_fv.c index 1f85c5c93..b85388e58 100644 --- a/hw/xen_machine_fv.c +++ b/hw/xen_machine_fv.c @@ -289,6 +289,7 @@ QEMUMachine xenfv_machine = { "Xen Fully-virtualized PC", xen_init_fv, (VGA_RAM_SIZE + BIOS_SIZE) | RAMSIZE_FIXED, + .max_cpus = 1, }; /* diff --git a/hw/xen_machine_pv.c b/hw/xen_machine_pv.c index 798b73540..9c4e33de7 100644 --- a/hw/xen_machine_pv.c +++ b/hw/xen_machine_pv.c @@ -78,6 +78,7 @@ QEMUMachine xenpv_machine = { "Xen Para-virtualized PC", xen_init_pv, (VGA_RAM_SIZE + BIOS_SIZE) | RAMSIZE_FIXED, + .max_cpus = 1, }; /* -- 2.39.5