Bug 1250850

Summary: qemu should report conflict warning message when multiple virtio-serial using the same path
Product: Red Hat Enterprise Linux 7 Reporter: quxiaoya <xqu>
Component: qemu-kvm-rhevAssignee: Amit Shah <amit.shah>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: hhuang, huding, juzhang, knoel, michen, qzhang, virt-maint, xfu
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:
: 1256170 (view as bug list) Environment:
Last Closed: 2017-01-30 11:17:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1256170    

Description quxiaoya 2015-08-06 07:10:50 UTC
Description of problem:

when boot a guest with multiple virtio-serial using same path,qemu didn't report any error message( As serial port cannot tranfer data from guest to host)

Version-Release number of selected component (if applicable):
host info:
# uname -r
3.10.0-302.el7.x86_64
# rpm -qa | grep qemu
qemu-kvm-rhev-2.3.0-14.el7.x86_64

guest info:
# uname -r
3.10.0-300.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. boot a guest with multiple virtio-serial using same path

cli:
/usr/libexec/qemu-kvm -smp 4 -m 4G -M pc -drive file=/home/sys_disk/RHEL-Server-7.2-64-virtio.qcow2-0805,format=qcow2,cache=none,if=none,werror=stop,rerror=stop,id=drive-disk0 -device ide-drive,drive=drive-disk0,id=disk0,bootindex=1 \

-monitor stdio -spice id=on,port=5933,disable-ticketing \
-netdev tap,id=tap0,script=/etc/qemu-ifup -device virtio-net-pci,netdev=tap0,mac=24:be:05:18:95:23 \

-qmp tcp:0:6766,server,nowait \

-device virtio-serial-pci,id=virtio-serial0,max_ports=16,bus=pci.0,addr=0x4 -chardev socket,id=channel1,path=/tmp/helloworld,server,nowait \

-device virtserialport,nr=1,chardev=channel1,name=com.redhat.rhevm.vdsm1,bus=virtio-serial0.0,id=port1 -chardev socket,id=channel2,path=/tmp/helloworld,server,nowait \

-device virtserialport,nr=2,chardev=channel2,name=com.redhat.rhevm.vdsm2,bus=virtio-serial0.0,id=port2



Actual results:
qemu will not report this conflict error

Expected results:

qemu report this conflict error 

Additional info:

Comment 4 Amit Shah 2017-01-30 11:17:06 UTC
This is fixed in commit d0a0bfe6729ef6044d76ea49fafa07e29fa598bd which was released as part of upstream qemu 2.2.

RHEL7.3 contains qemu 2.6, so I'm marking this as fixed in CURRENTRELEASE.