Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions virtme/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,12 +352,14 @@ def do_it() -> int:
# in current kernels. Nonetheless, I'm configuring the console
# manually to make it easier to tweak in the future.
qemuargs.extend(['-echr', '1'])
qemuargs.extend(['-serial', 'none'])
if arch.qemuname != 's390x':
qemuargs.extend(['-serial', 'none'])
qemuargs.extend(['-chardev', 'stdio,id=console,signal=off,mux=on'])

# We should be using the new-style -device serialdev,chardev=xyz,
# but many architecture-specific serial devices don't support that.
qemuargs.extend(['-serial', 'chardev:console'])
if arch.qemuname != 's390x':
qemuargs.extend(['-serial', 'chardev:console'])

qemuargs.extend(['-mon', 'chardev=console'])

Expand Down Expand Up @@ -423,12 +425,14 @@ def do_script(shellcmd, use_exec=False, show_boot_console=False):
qemuargs.extend(arch.qemu_nodisplay_args())

# Send kernel logs to stderr
qemuargs.extend(['-serial', 'none'])
if arch.qemuname != 's390x':
qemuargs.extend(['-serial', 'none'])
qemuargs.extend(['-chardev', 'file,id=console,path=/proc/self/fd/2'])

# We should be using the new-style -device serialdev,chardev=xyz,
# but many architecture-specific serial devices don't support that.
qemuargs.extend(['-serial', 'chardev:console'])
if arch.qemuname != 's390x':
qemuargs.extend(['-serial', 'chardev:console'])

if show_boot_console:
serdev = qemu.quote_optarg(arch.serial_dev_name(0))
Expand Down