char: Prevent multiple devices opening same chardev
commit2d6c1ef40f3678ab47a4d14fb5dadaa486bfcda6
authorAmit Shah <amit.shah@redhat.com>
Thu, 10 Feb 2011 07:25:20 +0000 (10 12:55 +0530)
committerAmit Shah <amit.shah@redhat.com>
Mon, 21 Mar 2011 11:27:13 +0000 (21 16:57 +0530)
treec23a1a315307a23e0e97704a06226ed8288e5729
parentf9a90f189c780e066039f2de3906c73c48071bb7
char: Prevent multiple devices opening same chardev

Prevent:

-chardev socket,path=/tmp/foo,server,nowait,id=c0 \
-device virtserialport,chardev=c0,id=vs0 \
-device virtserialport,chardev=c0,id=vs1

Reported-by: Mike Cao <bcao@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/qdev-properties.c
qemu-char.c
qemu-char.h