Skip to contentSkip to conversation

hw/arm/virt: increase max SMP CPU support to 8 for ARM virt

PATCH In review Wei Huang 2 participants 3 messages Aug 21, 2014

lore
Share & tools
lore

Wei Huang

author
#0 lore raw

PATCH 1/1 hw/arm/virt: increase max SMP CPU support to 8 for ARM virt

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.

---
 hw/arm/virt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/virt.c +1 -1
index ba94298..73a2a0f 100644
@@ -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)
Signature · 1 line
1.8.3.1
#1 lore raw
Quoted 6 lines · Wei Huang

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.

Great minds think alike :)
http://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg03306.html

Quoted 17 lines
---
  hw/arm/virt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/virt.c +1 -1
index ba94298..73a2a0f 100644
@@ -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)
author
#2 lore raw
Quoted 10 lines · Joel Schopp
Quoted 6 lines · Wei Huang

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.

Great minds think alike :)
http://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg03306.html

Oops, I missed this one. Thanks for pointing it out. :P

Quoted 20 lines
Quoted 18 lines

---
  hw/arm/virt.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
hw/arm/virt.c +1 -1
index ba94298..73a2a0f 100644
@@ -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)