Skip to content

Commit

Permalink
virtme: switch back to hypervisor console
Browse files Browse the repository at this point in the history
It looks like it was accidentally modified [1].

The hypervisor console is supposed to be better, except to debug early
console stuff. But that's OK, another serial is used for that: ttyS0 or
ttyAMA0, depending on the arch.

Fixes: 4bf382a ("virtme: pass "debug" to the boot options when running in verbose mode")
Link: #144 [1]
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
  • Loading branch information
matttbe committed Jul 29, 2024
1 parent 6758f55 commit ec1a1eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtme/commands/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ def do_it() -> int:
qemuargs.extend(["-chardev", "file,path=/proc/self/fd/2,id=dmesg"])
qemuargs.extend(["-device", arch.virtio_dev_type("serial")])
qemuargs.extend(["-device", "virtconsole,chardev=dmesg"])
kernelargs.extend(["console=ttyS0"])
kernelargs.extend(["console=hvc0"])

# Unfortunately we can't use hvc0 to redirect early console
# messages to stderr, so just send them to the main console, in
Expand Down

0 comments on commit ec1a1eb

Please sign in to comment.