[COMMIT osv master] scripts/run.py: do not hardcode memory size and cpu count for aarch64

4 views
Skip to first unread message

Commit Bot

unread,
Jul 13, 2020, 6:17:00 PM7/13/20
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

scripts/run.py: do not hardcode memory size and cpu count for aarch64

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/scripts/run.py b/scripts/run.py
--- a/scripts/run.py
+++ b/scripts/run.py
@@ -106,14 +106,9 @@ def start_osv_qemu(options):
else:
aio = 'cache=none,aio=native'

- if options.arch == 'aarch64':
- args = [
- "-m", "1G",
- "-smp", "2"]
- else:
- args = [
- "-m", options.memsize,
- "-smp", options.vcpus]
+ args = [
+ "-m", options.memsize,
+ "-smp", options.vcpus]

if not options.novnc and options.hypervisor != 'qemu_microvm' and options.arch == 'x86_64':
args += [
Reply all
Reply to author
Forward
0 new messages