| Summary: | Guest terminal returns directly in even number times w/o sending data out via virtio-serial-port | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Mike Cao <bcao> |
| Component: | qemu-kvm | Assignee: | Amit Shah <amit.shah> |
| Status: | CLOSED WORKSFORME | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | amit.shah, bcao, chayang, ddutile, jinzhao, juzhang, knoel, michen, mkenneth, qzhang, virt-maint |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-01-30 09:56:03 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Mike Cao
2011-05-05 08:55:18 UTC
This might be related to bug 621484. We used to lose data earlier when a host-side connection was terminated. After fixing that in bug 621484, we no longer lose data, but still miss the disconnect event. This can't be fixed till we switch to poll() in qemu's main_loop. That depends on the glib integration, so looks like we'll have to wait till RHEL7 for the fix here. *** Bug 729923 has been marked as a duplicate of this bug. *** *** Bug 797854 has been marked as a duplicate of this bug. *** *** Bug 962326 has been marked as a duplicate of this bug. *** The duplicates may have different testcases, please check them while verifying this bug too. main-loop.c still isn't using poll(), and we need that to detect SIGHUP. Not likely to happen anytime soon. This should work in RHEL7 now. Please test. Hi Jing, Could you have a test in latest RHEL7.2? Best Regards, Junyi kernel:3.10.0-327.el7.x86_64 qemu-kvm-rhev-2.3.0-31.el7,qemu-kvm-1.5.3-105.el7_2.1 and qemu-kvm-rhev-2.3.0-31.el7_2.3 1. Can not reproduce with comment0 2. Hit the data lost in the host when echo data in the guest, but the phenomenon are randomly. a.qemu-kvm-rhev-2.3.0-31.el7: Steps to Reproduce: 1.start VM with virtio-serial-port CLI:<CommandLine> -device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0\ -chardev socket,id=s1,path=/tmp/tt1,server,nowait \ -device virtserialport,chardev=s1,name=org.linux-kvm.port.0,bus=virtio-serial0.0,id=port0 \ 2.in the guest ,send data via /dev/vport0p1 echo c > /dev/vport0p1 3.on the host , nc -U /tmp/tt ,after received data,stop nc Result: tried 2 times with above steps, first time: echo will return directly without waiting host receive data after step2 and the data lost in the host after ran step3 ,only echo will waiting host receive data when echo 12 charaters, the second time: echo echo will return directly without waiting host receive data after step2 when ran "echo c > /dev/vport0p1" at 2nd b. qemu-kvm-rhev-2.3.0-31.el7_2.3: the steps are same with a result:echo echo will return directly without waiting host receive data after step2 when ran "echo c > /dev/vport0p1" at 2nd time c. qemu-kvm-1.5.3-105.el7_2.1: steps are same with a and b result:tried 2 times with above steps, first time: echo will return directly without waiting host receive data after step2 and the data lost in the host after ran step3 ,only echo will waiting host receive data when echo 14 charaters, the second time: echo echo will return directly without waiting host receive data after step2 when ran "echo c > /dev/vport0p1" at 2nd time. |