Current ARM virt model supports up to 4 CPUs. Given that many recent
ARM servers contain 8 or more cores, it is time to bump up max guest CPUs
to 8. This patch was tested with a VM runnng 3.15 Linux kernel. All 8
VCPUs showed up.

Signed-off-by: Wei Huang <[email protected]>
---
 hw/arm/virt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hw/arm/virt.c b/hw/arm/virt.c
index ba94298..73a2a0f 100644
--- a/hw/arm/virt.c
+++ b/hw/arm/virt.c
@@ -520,7 +520,7 @@ static QEMUMachine machvirt_a15_machine = {
     .name = "virt",
     .desc = "ARM Virtual Machine",
     .init = machvirt_init,
-    .max_cpus = 4,
+    .max_cpus = 8,
 };
 
 static void machvirt_machine_init(void)
-- 
1.8.3.1


Reply via email to