* [PULL 0/1] chardev patch for 7.2
@ 2022-11-21 7:36 marcandre.lureau
2022-11-21 7:36 ` [PULL 1/1] chardev/char-win-stdio: Pass Ctrl+C to guest with a multiplexed monitor marcandre.lureau
2022-11-21 15:54 ` [PULL 0/1] chardev patch for 7.2 Stefan Hajnoczi
0 siblings, 2 replies; 3+ messages in thread
From: marcandre.lureau @ 2022-11-21 7:36 UTC (permalink / raw)
To: qemu-devel; +Cc: Marc-André Lureau, Paolo Bonzini
From: Marc-André Lureau <marcandre.lureau@redhat.com>
The following changes since commit a082fab9d259473a9d5d53307cf83b1223301181:
Merge tag 'pull-ppc-20221117' of https://gitlab.com/danielhb/qemu into staging (2022-11-17 12:39:38 -0500)
are available in the Git repository at:
https://gitlab.com/marcandre.lureau/qemu.git tags/chr-pull-request
for you to fetch changes up to 06639f8ff53d1dbfa709377499e6c30eca9c3c9a:
chardev/char-win-stdio: Pass Ctrl+C to guest with a multiplexed monitor (2022-11-21 11:30:11 +0400)
----------------------------------------------------------------
chardev fix on win32
----------------------------------------------------------------
Bin Meng (1):
chardev/char-win-stdio: Pass Ctrl+C to guest with a multiplexed
monitor
chardev/char-win-stdio.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
--
2.38.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PULL 1/1] chardev/char-win-stdio: Pass Ctrl+C to guest with a multiplexed monitor
2022-11-21 7:36 [PULL 0/1] chardev patch for 7.2 marcandre.lureau
@ 2022-11-21 7:36 ` marcandre.lureau
2022-11-21 15:54 ` [PULL 0/1] chardev patch for 7.2 Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: marcandre.lureau @ 2022-11-21 7:36 UTC (permalink / raw)
To: qemu-devel; +Cc: Marc-André Lureau, Paolo Bonzini, Bin Meng
From: Bin Meng <bin.meng@windriver.com>
At present when pressing Ctrl+C from a guest running on QEMU Windows
with a multiplexed monitor, e.g.: -serial mon:stdio, QEMU executable
just exits. This behavior is inconsistent with the Linux version.
Such behavior is caused by unconditionally setting the input mode
ENABLE_PROCESSED_INPUT for a console's input buffer. Fix this by
testing whether the chardev is allowed to do so.
Signed-off-by: Bin Meng <bin.meng@windriver.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20221025141015.612291-1-bin.meng@windriver.com>
---
chardev/char-win-stdio.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/chardev/char-win-stdio.c b/chardev/char-win-stdio.c
index a4771ab82e..eb830eabd9 100644
--- a/chardev/char-win-stdio.c
+++ b/chardev/char-win-stdio.c
@@ -146,6 +146,8 @@ static void qemu_chr_open_stdio(Chardev *chr,
bool *be_opened,
Error **errp)
{
+ ChardevStdio *opts = backend->u.stdio.data;
+ bool stdio_allow_signal = !opts->has_signal || opts->signal;
WinStdioChardev *stdio = WIN_STDIO_CHARDEV(chr);
DWORD dwMode;
int is_console = 0;
@@ -193,7 +195,11 @@ static void qemu_chr_open_stdio(Chardev *chr,
if (is_console) {
/* set the terminal in raw mode */
/* ENABLE_QUICK_EDIT_MODE | ENABLE_EXTENDED_FLAGS */
- dwMode |= ENABLE_PROCESSED_INPUT;
+ if (stdio_allow_signal) {
+ dwMode |= ENABLE_PROCESSED_INPUT;
+ } else {
+ dwMode &= ~ENABLE_PROCESSED_INPUT;
+ }
}
SetConsoleMode(stdio->hStdIn, dwMode);
--
2.38.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PULL 0/1] chardev patch for 7.2
2022-11-21 7:36 [PULL 0/1] chardev patch for 7.2 marcandre.lureau
2022-11-21 7:36 ` [PULL 1/1] chardev/char-win-stdio: Pass Ctrl+C to guest with a multiplexed monitor marcandre.lureau
@ 2022-11-21 15:54 ` Stefan Hajnoczi
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2022-11-21 15:54 UTC (permalink / raw)
To: marcandre.lureau; +Cc: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 115 bytes --]
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/7.2 for any user-visible changes.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-11-21 15:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-21 7:36 [PULL 0/1] chardev patch for 7.2 marcandre.lureau
2022-11-21 7:36 ` [PULL 1/1] chardev/char-win-stdio: Pass Ctrl+C to guest with a multiplexed monitor marcandre.lureau
2022-11-21 15:54 ` [PULL 0/1] chardev patch for 7.2 Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).