]> code.ossystems Code Review - openembedded-core.git/commitdiff
qemu: set default RAM to 256M for all machines
authorAlexander Kanavin <alex.kanavin@gmail.com>
Wed, 28 Aug 2019 15:24:38 +0000 (17:24 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Aug 2019 16:12:36 +0000 (17:12 +0100)
There was a discussion about what amount of RAM is appropriate for a
default; the outcome was that for now it is still 256M. Some qemu machine
definitions have however set this to 512M so for the sake of
treating all architectures fairly, they are reset back to 256M.

Also runqemu is adjusted to use 256M if QB_MEM is not set at all.

http://lists.openembedded.org/pipermail/openembedded-core/2019-August/285900.html

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/machine/include/qemuboot-mips.inc
meta/conf/machine/include/riscv/qemuriscv.inc
meta/conf/machine/qemuarm.conf
meta/conf/machine/qemuarm64.conf
scripts/runqemu

index a5f9ed821f42fe7f848c55ca921b78d7ffc7648c..1c2b532b48275bd5c3098c05d70698c6c84d096a 100644 (file)
@@ -1,6 +1,5 @@
 # For runqemu
 IMAGE_CLASSES += "qemuboot"
-QB_MEM = "-m 256"
 QB_MACHINE = "-machine malta"
 QB_KERNEL_CMDLINE_APPEND = "console=ttyS0 console=tty"
 QB_OPT_APPEND = "-vga cirrus -show-cursor -usb -device usb-tablet"
index f1cb62818b77bf3282b73f4c5e7851ec312b601e..952779e98e8729db82231bfbc96c225c765965ae 100644 (file)
@@ -24,7 +24,6 @@ UBOOT_ENTRYPOINT_riscv64 = "0x80200000"
 
 # qemuboot options
 QB_KERNEL_CMDLINE_APPEND = "earlycon=sbi"
-QB_MEM = "-m 512"
 QB_MACHINE = "-machine virt"
 QB_DEFAULT_BIOS = "fw_jump.elf"
 QB_TAP_OPT = "-netdev tap,id=net0,ifname=@TAP@,script=no,downscript=no"
index 0a2c9953125cb19232e5654d8f04bf0573adef54..26f40b14194aab466bef1c86e5260261d8265aed 100644 (file)
@@ -11,7 +11,6 @@ SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
 
 # For runqemu
 QB_SYSTEM_NAME = "qemu-system-arm"
-QB_MEM = "-m 512"
 QB_MACHINE = "-machine virt"
 QB_CPU = "-cpu cortex-a15"
 # Standard Serial console
index 353ac927d949a65cefe36107e2001308abd06423..ec2a887bddf10cf1c0be83a1fdd2d0b1c5c43f71 100644 (file)
@@ -11,7 +11,6 @@ SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
 
 # For runqemu
 QB_SYSTEM_NAME = "qemu-system-aarch64"
-QB_MEM = "-m 512"
 QB_MACHINE = "-machine virt"
 QB_CPU = "-cpu cortex-a57"
 QB_CPU_KVM = "-cpu host"
index e9b83737cbfd01178c1150f64f3ca8bb212feafd..7705b2b60e3bae6f5382efc78f1e923c96a29e4e 100755 (executable)
@@ -755,8 +755,8 @@ class BaseConfig(object):
         if s:
             self.set('QB_MEM', '-m %s' % s.group(1))
         elif not self.get('QB_MEM'):
-            logger.info('QB_MEM is not set, use 512M by default')
-            self.set('QB_MEM', '-m 512')
+            logger.info('QB_MEM is not set, use 256M by default')
+            self.set('QB_MEM', '-m 256')
 
         # Check and remove M or m suffix
         qb_mem = self.get('QB_MEM')