git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update readme introduction part, add demo screen-shot
[lunaix-os.git]
/
lunaix-os
/
scripts
/
qemu.py
diff --git
a/lunaix-os/scripts/qemu.py
b/lunaix-os/scripts/qemu.py
index fca6da9dac4579325e817cc65a5e7bcef7c796ba..592bdf8b535027a962cc765bec24c27d659422be 100755
(executable)
--- a/
lunaix-os/scripts/qemu.py
+++ b/
lunaix-os/scripts/qemu.py
@@
-337,6
+337,7
@@
class QEMUExec:
qemu_path = os.path.join(qemu_dir_override, qemu_path)
cmds = [
qemu_path,
qemu_path = os.path.join(qemu_dir_override, qemu_path)
cmds = [
qemu_path,
+ *extras,
*self.get_qemu_general_opts(),
*self.get_qemu_arch_opts(),
*self.get_qemu_debug_opts()
*self.get_qemu_general_opts(),
*self.get_qemu_arch_opts(),
*self.get_qemu_debug_opts()
@@
-345,14
+346,14
@@
class QEMUExec:
for dev in self._devices:
cmds += dev.get_qemu_opts()
for dev in self._devices:
cmds += dev.get_qemu_opts()
- cmds += extras
- print(" ".join(cmds), "\n")
+ logger.info(" ".join(cmds))
if dryrun:
logger.info("[DRY RUN] QEMU not invoked")
return
handle = subprocess.Popen(cmds)
if dryrun:
logger.info("[DRY RUN] QEMU not invoked")
return
handle = subprocess.Popen(cmds)
+ logger.info(f"QEMU launched (pid={handle.pid})")
while True:
ret_code = handle.poll()
while True:
ret_code = handle.poll()