@samitouri / QOSamiQemu / commits / 1c09090b48

python/qemu: split console from harness args

Before we mess with the console output lets create a new helper just for that. Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-ID: <20260619155657.944220-3-alex.bennee@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>

Alex Bennée committed Jun 19, 2026 at 16:56 UTC 1c09090b4891f8d1891a66d625eaeb77d322f45c
1 file changed +5
python/qemu/machine/machine.py
+5
@@ -306,7 +306,11 @@ class QEMUMachine:
306 moncdev = f"socket,id=mon,path={self._monitor_address}"
307 args.extend(['-chardev', moncdev, '-mon',
308 'chardev=mon,mode=control'])
309 + return args
310
311 + @property
312 + def _console_args(self) -> List[str]:
313 + args: List[str] = []
314 for _ in range(self._console_index):
315 args.extend(['-serial', 'null'])
316 if self._console_set:
@@ -372,6 +376,7 @@ class QEMUMachine:
376 self._wrapper,
377 [self._binary],
378 self._harness_args,
379 + self._console_args,
380 self._base_args,
381 self._args
382 ))