]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: Set SMP to 4 cpus for arm/x86 only
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 May 2021 09:42:22 +0000 (10:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 May 2021 17:09:03 +0000 (18:09 +0100)
Only qemux86* and qemuarm* support SMP with our current configurations so
rework qemu SMP enabling to account for that and only use it on the architectures
where it works.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/qemuboot.bbclass
meta/conf/machine/include/qemuboot-x86.inc
meta/conf/machine/qemuarm.conf
meta/conf/machine/qemuarm64.conf

index 0fdd10099ce492f216359ba4d267d03f7b1cbc4a..2b50ddaa228f8bad1daeb2068b74fae949661fbb 100644 (file)
@@ -83,7 +83,7 @@
 # See "runqemu help" for more info
 
 QB_MEM ?= "-m 256"
-QB_SMP ?= "-smp 4"
+QB_SMP ?= ""
 QB_SERIAL_OPT ?= "-serial mon:stdio -serial null"
 QB_DEFAULT_KERNEL ?= "${KERNEL_IMAGETYPE}"
 QB_DEFAULT_FSTYPE ?= "ext4"
index 2a4760c7177d073fec1f00105658c5d796405e66..9b1e1c49753c60f363a94ac5ee2a579b609d9b71 100644 (file)
@@ -1,5 +1,6 @@
 # For runqemu
 IMAGE_CLASSES += "qemuboot"
+QB_SMP = "-smp 4"
 QB_CPU_x86 = "-cpu core2duo"
 QB_CPU_KVM_x86 = "-cpu core2duo"
 
index e5ec4cc065f02b2f5d790a7726aee8468de97bd9..34fcde698c1dc7663f455798410b99e251bbeed5 100644 (file)
@@ -16,6 +16,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 QB_SYSTEM_NAME = "qemu-system-arm"
 QB_MACHINE = "-machine virt,highmem=off"
 QB_CPU = "-cpu cortex-a15"
+QB_SMP = "-smp 4"
 # Standard Serial console
 QB_KERNEL_CMDLINE_APPEND = "vmalloc=256"
 # For graphics to work we need to define the VGA device as well as the necessary USB devices
index 51f7ecdcfda5dea6915f3d00ab7581eadda29510..150a0744ebf440a2e9124ce71c9405fb4bcd1f86 100644 (file)
@@ -16,6 +16,7 @@ SERIAL_CONSOLES_CHECK = "${SERIAL_CONSOLES}"
 QB_SYSTEM_NAME = "qemu-system-aarch64"
 QB_MACHINE = "-machine virt"
 QB_CPU = "-cpu cortex-a57"
+QB_SMP = "-smp 4"
 QB_CPU_KVM = "-cpu host -machine gic-version=3"
 # For graphics to work we need to define the VGA device as well as the necessary USB devices
 QB_GRAPHICS = "-device VGA,edid=on"