]> git.proxmox.com Git - qemu.git/commit
char: Allow devices to use a single multiplexed chardev.
authorKusanagi Kouichi <slash@ac.auone-net.jp>
Tue, 26 Apr 2011 10:19:26 +0000 (19:19 +0900)
committerAmit Shah <amit.shah@redhat.com>
Thu, 28 Apr 2011 05:33:07 +0000 (11:03 +0530)
commitd5b27167e17e0d9393d6364703cc68e7f018023c
tree3ce6acb13954c23310a88fb0cfb5444e15d96920
parentcd8f7df2891891c3a6c346892545c4407be6699f
char: Allow devices to use a single multiplexed chardev.

This fixes regression caused by commit
2d6c1ef40f3678ab47a4d14fb5dadaa486bfcda6
("char: Prevent multiple devices opening same chardev"):

-nodefaults -nographic -chardev stdio,id=stdio,mux=on,signal=off \
 -mon stdio -device virtio-serial-pci \
 -device virtconsole,chardev=stdio -device isa-serial,chardev=stdio

fails with:

qemu-system-x86_64: -device isa-serial,chardev=stdio: Property 'isa-serial.chardev' can't take value 'stdio', it's in use

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/qdev-properties.c
qemu-char.c
qemu-char.h