From: Trevor Woerner <twoerner@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 10/11] QB_SMP: allow user modification
Date: Tue, 21 Feb 2023 15:44:44 -0500 [thread overview]
Message-ID: <20230221204445.23931-11-twoerner@gmail.com> (raw)
In-Reply-To: <20230221204445.23931-1-twoerner@gmail.com>
Allow a user to override the QM_SMP value giving them the opportunity to
select for themselves the number of CPUs to use in qemu.
Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
meta/conf/machine/include/riscv/qemuriscv.inc | 2 +-
meta/conf/machine/include/x86/qemuboot-x86.inc | 2 +-
meta/conf/machine/qemuarm.conf | 2 +-
meta/conf/machine/qemuarm64.conf | 2 +-
meta/conf/machine/qemuppc64.conf | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/meta/conf/machine/include/riscv/qemuriscv.inc b/meta/conf/machine/include/riscv/qemuriscv.inc
index 1d32b4a58209..c977a266ca21 100644
--- a/meta/conf/machine/include/riscv/qemuriscv.inc
+++ b/meta/conf/machine/include/riscv/qemuriscv.inc
@@ -26,7 +26,7 @@ UBOOT_ENTRYPOINT:riscv32 = "0x80400000"
UBOOT_ENTRYPOINT:riscv64 = "0x80200000"
# qemuboot options
-QB_SMP = "-smp 4"
+QB_SMP ?= "-smp 4"
QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
QB_MACHINE = "-machine virt"
QB_DEFAULT_BIOS = "fw_jump.elf"
diff --git a/meta/conf/machine/include/x86/qemuboot-x86.inc b/meta/conf/machine/include/x86/qemuboot-x86.inc
index 3953679366d9..dd7e7c938413 100644
--- a/meta/conf/machine/include/x86/qemuboot-x86.inc
+++ b/meta/conf/machine/include/x86/qemuboot-x86.inc
@@ -1,6 +1,6 @@
# For runqemu
IMAGE_CLASSES += "qemuboot"
-QB_SMP = "-smp 4"
+QB_SMP ?= "-smp 4"
QB_CPU:x86 = "-cpu IvyBridge -machine q35,i8042=off"
QB_CPU_KVM:x86 = "-cpu IvyBridge -machine q35,i8042=off"
diff --git a/meta/conf/machine/qemuarm.conf b/meta/conf/machine/qemuarm.conf
index 1bd4e3e154fc..c5234231e2e5 100644
--- a/meta/conf/machine/qemuarm.conf
+++ b/meta/conf/machine/qemuarm.conf
@@ -16,7 +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"
+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
diff --git a/meta/conf/machine/qemuarm64.conf b/meta/conf/machine/qemuarm64.conf
index ffc51c803fa7..2f0f0e4f842f 100644
--- a/meta/conf/machine/qemuarm64.conf
+++ b/meta/conf/machine/qemuarm64.conf
@@ -16,7 +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_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 virtio-gpu-pci"
diff --git a/meta/conf/machine/qemuppc64.conf b/meta/conf/machine/qemuppc64.conf
index 770933931324..2fbd26a6f997 100644
--- a/meta/conf/machine/qemuppc64.conf
+++ b/meta/conf/machine/qemuppc64.conf
@@ -13,7 +13,7 @@ SERIAL_CONSOLES ?= "115200;hvc0"
QB_SYSTEM_NAME = "qemu-system-ppc64"
QB_MACHINE = "-machine pseries"
QB_CPU = "-cpu POWER9"
-QB_SMP = "-smp 2"
+QB_SMP ?= "-smp 2"
QB_NFSROOTFS_EXTRA_OPT = "wsize=524288,rsize=524288"
QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"
--
2.36.0.rc2.17.g4027e30c53
next prev parent reply other threads:[~2023-02-21 20:45 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-21 20:44 [PATCH 00/11] build-appliance-image revival Trevor Woerner
2023-02-21 20:44 ` [PATCH 01/11] packagegroup-self-hosted: alphabetize Trevor Woerner
2023-02-21 20:44 ` [PATCH 02/11] packagegroup-self-hosted: add zstd Trevor Woerner
2023-02-21 20:44 ` [PATCH 03/11] build-appliance-image: add support for qemu Trevor Woerner
2023-02-24 16:05 ` [OE-core] " Richard Purdie
2023-02-25 13:17 ` Trevor Woerner
[not found] ` <1746CE49489610B4.29542@lists.openembedded.org>
2023-02-24 17:26 ` Richard Purdie
2023-02-21 20:44 ` [PATCH 04/11] build-appliance-image: set TERM Trevor Woerner
2023-02-21 20:44 ` [PATCH 05/11] build-appliance-image kernel: linux-yocto: qemuall: add taskstats Trevor Woerner
2023-02-21 20:44 ` [PATCH 06/11] build-appliance-image: fix HOMEPAGE Trevor Woerner
2023-02-21 20:44 ` [PATCH 07/11] build-appliance-image: add /lib64 symlink Trevor Woerner
2023-02-21 20:44 ` [PATCH 08/11] build-appliance-image: use a real /tmp Trevor Woerner
2023-02-21 20:44 ` [PATCH 09/11] build-appliance-image: QB_MEM: allow user config Trevor Woerner
2023-02-22 2:12 ` [OE-core] " Khem Raj
2023-02-21 20:44 ` Trevor Woerner [this message]
2023-02-21 20:44 ` [PATCH 11/11] build-appliance-image: check for xattr feature Trevor Woerner
[not found] ` <1745F1D06F6A6D6B.17041@lists.openembedded.org>
2023-02-22 2:25 ` [OE-core] [PATCH 08/11] build-appliance-image: use a real /tmp Trevor Woerner
2023-02-22 14:46 ` Richard Purdie
2023-02-22 20:40 ` Trevor Woerner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230221204445.23931-11-twoerner@gmail.com \
--to=twoerner@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox