| Summary: | console ports still in guest after hot unplug virtio-serial-pci or virtconsole | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | juzhang <juzhang> |
| Component: | qemu-kvm | Assignee: | Amit Shah <amit.shah> |
| Status: | CLOSED NOTABUG | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.1 | CC: | amit.shah, michen, mkenneth, virt-maint |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-03-08 08:16:14 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 580954 | ||
I also tried hot-add console ports,it works after hot add virtio-serial-pci.can find console in guest,do not have to reboot guest. After hot-unplug, you should notice the relevant entries missing from /dev/vport*. /dev/hvc entries are from the hvc layer, which is independent from virtio-console. |
Description of problem: console ports still in guest after hot unplug virtio-serial-pci or virtconsole Version-Release number of selected component (if applicable): Host kernel: #uname -r 2.6.32-118.el6.x86_64 Qemu-kvm version #qemu-kvm-0.12.1.2-2.149.el6.x86_64 Guest kernel: #uname -r 2.6.32-118.el6.x86_64 How reproducible: 2/2 Steps to Reproduce: 1.Boot guest with two console ports #/usr/libexec/qemu-kvm -m 2G -smp 4 -drive file=/root/zhangjunyi/rhel6.1-ide.qcow2,if=none,id=test,cache=none,format=qcow2,werror=stop,rerror=stop -device virtio-blk-pci,drive=test -cpu qemu64,+sse2,+x2apic -boot c -netdev tap,id=hostnet0,vhost=on -device virtio-net-pci,netdev=hostnet0,id=net0,mac=22:11:22:45:66:95 -vnc :11 /-device virtio-serial-pci,id=ser0,max_ports=2 -chardev socket,path=/tmp/foo,server,nowait,id=foo -chardev socket,path=/tmp/bar,server,nowait,id=bar -device virtconsole,bus=ser0.0,chardev=foo,name=org.fedoraproject.console.foo,id=zhang1 -device virtconsole,bus=ser0.0,chardev=bar,name=org.fedoraproject.console.bar,id=zhang2 -qmp tcp:0:4444,server,nowait -monitor stdio 2.In guest,check console ports number hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 3.hot remove virtio-serial-pci #{"execute":"device_del","arguments":{"id":"ser0"}} 4.I check in qemu,in qemu console,virtio-serial-pci was hot removed. (qemu)info qtree 5.in guest,console ports still here. hvc0 hvc1 hvc2 hvc3 hvc4 hvc5 hvc6 hvc7 Actual results: in guest,console ports still here. Expected results: console should be removed. Additional info: After hot remove virtio-serial-pci,if i reboot guest,console ports spawn on this virtio-serial-pci were gone.