diff --git a/Meta/run.py b/Meta/run.py index 14e6757738b..3ce1ae55898 100755 --- a/Meta/run.py +++ b/Meta/run.py @@ -18,6 +18,7 @@ from pathlib import Path from shutil import which from subprocess import run from typing import Any, Callable, Literal +import shlex QEMU_MINIMUM_REQUIRED_MAJOR_VERSION = 6 QEMU_MINIMUM_REQUIRED_MINOR_VERSION = 2 @@ -826,6 +827,8 @@ def assemble_arguments(config: Configuration) -> list[str | Path]: boch_src = Path(config.serenity_src or ".", "Meta/bochsrc") return [config.bochs_binary, "-q", "-f", boch_src] + passed_qemu_args = shlex.split(environ.get("SERENITY_EXTRA_QEMU_ARGS", "")) + return [ config.qemu_binary or "", # Deviate from standard order here: @@ -851,6 +854,7 @@ def assemble_arguments(config: Configuration) -> list[str | Path]: *config.network_default_arguments, *config.boot_drive_arguments, *config.character_device_arguments, + *passed_qemu_args, ]