New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qemu: remove useless '-serial none' arg #99
Conversation
It shouldn't close the bug. I still need to replace console=hvc0 with console=ttyS0 for input to work. |
@ishitatsuyuki which commands are you using and with which arch? Because on my side ( EDIT: oops, not fully awake, I was using an old command with the |
I use
|
When not using the --graphics mode, or without the script options, QEmu was always launched with: -serial none -serial chardev:console '-serial none' means "don't allocate this serial device". Here, it is directly overridden by another serial. Best not to declare '-serial none' then. Since QEmu 8.2.2, having '-serial none -serial <something>' is no longer supported, and it is then recommended to remove the unnecessary '-serial none' [1]. It continues to work on previous versions (tested on 8.2.1). Reported-by: @tehcaster Closes: arighi#97 Link: https://lore.kernel.org/qemu-devel/20240122163607.459769-2-peter.maydell@linaro.org/ [1] Suggested-by: @ishitatsuyuki Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for looking at this @matttbe and @ishitatsuyuki!
Everything seems to work for me with this change (but I'm still on qemu 8.2.1).
@ishitatsuyuki the problem about using console=ttyS0
is that we won't get the stderr redirection on the host properly via the virtconsole device. Basically something like vng -vr -- uname -r 2> /tmp/kernel.log
shouldn't work if we use ttyS0
... so I guess we need to figure out why hvc0
doesn't work in your case.
Do you have CONFIG_HVC_DRIVER
enabled in your kernel .config? I guess we need to enforce this option in virtme-configkernel
...
|
@ishitatsuyuki was it working before with older QEmu versions? |
I'm pretty sure it was working, but I've since upgraded the kernel tree, and downgrading qemu on Arch also seems a lot of effort since there's a lot of packages. |
Confirmed that this fixes QEMU 8.2.2 on Arch both with and without Tested-by: David Vernet void@manifault.com |
Alright since more people are experiencing this issue, I've decide to merge this, if there are still open issues we can fix them in tree. Thanks tons everyone for investigating, testing and fixing this! |
Sorry for the noise, the console issue was due to a version mismatch (I forgot to update the virtme-ng-init submodule). After updating it works now. |
Thanks for the fix. This fix alone might worth a release, just to make sure distros tracking the stable releases fetching this quickly. |
Agreed, I'm planning to cut a new release later today! |
When not using the
--graphics
mode, or without the script options, QEmu was always launched with:-serial none
means "don't allocate this serial device". Here, it is directly overridden by another serial. Best not to declare '-serial none' then.Since QEmu 8.2.2, having
-serial none -serial <something>
is no longer supported, and it is then recommended to remove the unnecessary-serial none
[1]. It continues to work on previous versions (tested on 8.2.1).Reported-by: @tehcaster (and others)
Closes: #97
Link: https://lore.kernel.org/qemu-devel/20240122163607.459769-2-peter.maydell@linaro.org/ [1]
Suggested-by: @ishitatsuyuki
Note: I'm not using QEmu 8.2.2 yet, but a few people reported having this issue with it, and a solution has already been suggested. So why not doing the modification in the code for everyone :)