blob: 9980d7f14d0ca2aa0beb966e52ff53cd44408159 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
socket: 0.574
semantic: 0.536
device: 0.531
other: 0.446
mistranslation: 0.389
network: 0.377
vnc: 0.289
graphic: 0.228
boot: 0.196
instruction: 0.155
KVM: 0.153
assembly: 0.078
Chardev websocket might not support pasting more than a few chars
When sending more than 4-5 characters on the websocket serial console (with pasting for example), the guest might not receive all of them, or worse interpret the input as Magic SysRq keys.
This might be due to the io loop not checking the backend readiness before calling the read function.
Attached patched fixes the problem on my system. I'm not sure it's the proper approach, this is just to start discussion.
If the problem only happens with a websockets channel enabled, it possibly a bug in the QIOChannelWebsock impl rather than the chardev
I wrote a websocket client to help reproduce the bug without a browser:
https://github.com/anisse/websocktty
You can install it to your $GOPATH/bin (defaults to ~/go/bin) with "go get github.com/anisse/websocktty"
I can reproduce the bug with it by simply pasting a long-enough (5 to 20 characters) string.
I could not reproduce the bug with qemu's "-serial tcp" and netcat, so this problem might indeed be limited to the websock channel implementation.
The QEMU project is currently considering to move its bug tracking to
another system. For this we need to know which bugs are still valid
and which could be closed already. Thus we are setting older bugs to
"Incomplete" now.
If you still think this bug report here is valid, then please switch
the state back to "New" within the next 60 days, otherwise this report
will be marked as "Expired". Or please mark it as "Fix Released" if
the problem has been solved with a newer version of QEMU already.
Thank you and sorry for the inconvenience.
The bug is still present.
This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:
https://gitlab.com/qemu-project/qemu/-/issues/133
|