Skip to contentSkip to conversation

qemuppc64.conf: Disable huge vmalloc

PATCH New Khem Raj 1 participant 2 messages Mar 16, 2022

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/2 qemuppc64.conf: Disable huge vmalloc

This feature results in X11 crashes on Qemu since 5.13+ when it was added disable it therefore for qemuppc64

---
 meta/conf/machine/qemuppc64.conf | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/qemuppc64.conf +1 -1
index a35c40b5927..5f4f68b9816 100644
@@ -13,7 +13,7 @@ SERIAL_CONSOLES ?= "115200;hvc0"
 QB_SYSTEM_NAME = "qemu-system-ppc64"
 QB_MACHINE = "-machine pseries"
 QB_CPU = "-cpu POWER9"
-QB_KERNEL_CMDLINE_APPEND = "console=hvc0"
+QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"
 #QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
 QB_OPT_APPEND = "-usb -device usb-tablet"
 
Signature · 1 line
2.35.1
author
#1 lore raw

PATCH 2/2 qemuppc64: Use smp = 2

Speeds up the system a bit

---
 meta/conf/machine/qemuppc64.conf | 2 ++
 1 file changed, 2 insertions(+)
meta/conf/machine/qemuppc64.conf +2 -0
index 5f4f68b9816..304f06a30d2 100644
@@ -13,6 +13,8 @@ SERIAL_CONSOLES ?= "115200;hvc0"
 QB_SYSTEM_NAME = "qemu-system-ppc64"
 QB_MACHINE = "-machine pseries"
 QB_CPU = "-cpu POWER9"
+QB_SMP = "-smp 2"
+
 QB_KERNEL_CMDLINE_APPEND = "console=hvc0 nohugevmalloc"
 #QB_OPT_APPEND += "-device qemu-xhci -device usb-tablet -device usb-kbd"
 QB_OPT_APPEND = "-usb -device usb-tablet"
Signature · 1 line
2.35.1