diff options
author | Jason Wang <jasowang@redhat.com> | 2019-01-30 11:14:27 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-02-04 16:03:20 +0000 |
commit | 773c4a6228fd910556cee2d477ee56c591a30000 (patch) | |
tree | 0b6fff3003469f80306cab0e0a7ba9056669585b /hw/xtensa/xtfpga.c | |
parent | 335dbb5de1e98c4dc73590349f17bb2a4d72596c (diff) | |
download | qemu-773c4a6228fd910556cee2d477ee56c591a30000.zip qemu-773c4a6228fd910556cee2d477ee56c591a30000.tar.gz qemu-773c4a6228fd910556cee2d477ee56c591a30000.tar.bz2 |
test-filter-mirror: pass UNIX domain socket through fd
The tests tries to let qemu server mode to process the connection
which turns out to be racy after commit 8258292e18c3 ("monitor: Remove
"x-oob", offer capability "oob" unconditionally"). This is because the
filter may try to mirror the packets before UNIX socket object is
ready (connected was set to true) from the view of qemu. In this case
the packet will be dropped silently.
Fixing this by passing pre-connected socket created by socketpair() to
qemu through fd.
Cc: Peter Maydell <peter.maydell@linaro.org>
Cc: Li Zhijian <lizhijian@cn.fujitsu.com>
Cc: Peter Xu <peterx@redhat.com>
Cc: Dr. David Alan Gilbert <dgilbert@redhat.com>
Cc: Zhang Chen <zhangckid@gmail.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Zhang Chen <zhangckid@gmail.com>
Message-id: 20190130031427.13129-1-jasowang@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/xtensa/xtfpga.c')
0 files changed, 0 insertions, 0 deletions