]> git.proxmox.com Git - mirror_qemu.git/commit - gdbstub.c
qemu-char: Call fe_claim / fe_release when not using qdev chr properties
authorHans de Goede <hdegoede@redhat.com>
Wed, 27 Mar 2013 19:29:40 +0000 (20:29 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 5 Apr 2013 00:21:25 +0000 (19:21 -0500)
commit456d60692310e7ac25cf822cc1e98192ad636ece
tree864cec4d85706b465de5c1e23b9f01417b5eff80
parent44c473decd4de5559487430f876de53c607b1e9d
qemu-char: Call fe_claim / fe_release when not using qdev chr properties

chardev-frontends need to explictly check, increase and decrement the
avail_connections "property" of the chardev when they are not using a
qdev-chardev-property for the chardev.

This fixes things like:
qemu-kvm -chardev stdio,id=foo -device isa-serial,chardev=foo \
  -mon chardev=foo

Working, where they should fail. Most of the changes here are due to
old hardware emulation code which is using serial_hds directly rather then
a qdev-chardev-property.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Message-id: 1364412581-3672-3-git-send-email-hdegoede@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
12 files changed:
backends/rng-egd.c
gdbstub.c
hw/arm/pxa2xx.c
hw/bt-hci-csr.c
hw/ipoctal232.c
hw/ivshmem.c
hw/mcf_uart.c
hw/sh_serial.c
hw/xen_console.c
net/slirp.c
qemu-char.c
vl.c