summaryrefslogtreecommitdiffstats
path: root/include/qemu/range.h
diff options
context:
space:
mode:
authorKevin Cernekee2017-09-20 22:42:04 +0200
committerSamuel Thibault2017-09-24 20:04:09 +0200
commite2aad34d73a9bd2b95275598daf05f190a02b899 (patch)
treef911799e05a3e706203052c469bae73117916bf5 /include/qemu/range.h
parentslirp: Add explanation for hostfwd parsing failure (diff)
downloadqemu-e2aad34d73a9bd2b95275598daf05f190a02b899.tar.gz
qemu-e2aad34d73a9bd2b95275598daf05f190a02b899.tar.xz
qemu-e2aad34d73a9bd2b95275598daf05f190a02b899.zip
slirp: Fix intermittent send queue hangs on a socket
if_output() originally sent one mbuf per call and used the slirp->next_m variable to keep track of where it left off. But nowadays it tries to send all of the mbufs from the fastq, and one mbuf from each session on the batchq. The next_m variable is both redundant and harmful: there is a case[0] involving delayed packets in which next_m ends up pointing to &slirp->if_batchq when an active session still exists, and this blocks all traffic for that session until qemu is restarted. The test case was created to reproduce a problem that was seen on long-running Chromium OS VM tests[1] which rapidly create and destroy ssh connections through hostfwd. [0] https://pastebin.com/NNy6LreF [1] https://bugs.chromium.org/p/chromium/issues/detail?id=766323 Signed-off-by: Kevin Cernekee <cernekee@chromium.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'include/qemu/range.h')
0 files changed, 0 insertions, 0 deletions