summary refs log tree commit diff stats
path: root/hw/virtio-serial-bus.c
diff options
context:
space:
mode:
authorAmit Shah <amit.shah@redhat.com>2011-12-21 12:28:28 +0530
committerAnthony Liguori <aliguori@us.ibm.com>2011-12-21 15:00:29 -0600
commit05e7af694ce00dafdc464ca70306fa9dd6f78dcd (patch)
tree06c0ced4f1558aced1004634eae18a9bbf775753 /hw/virtio-serial-bus.c
parent6640422c172e01d0e191a754d3643a68abca83bc (diff)
downloadfocaccia-qemu-05e7af694ce00dafdc464ca70306fa9dd6f78dcd.tar.gz
focaccia-qemu-05e7af694ce00dafdc464ca70306fa9dd6f78dcd.zip
virtio-console: Properly initialise class methods
The earlier code really was a hack: initialising class methods in an
object init function as noted by Anthony.

The motivation for that was to not have the virtio-serial-bus call into
the callback functions if there was no chardev backend registered.
However, that really wasn't a worthwhile optimisation, and definitely
not one that was well-implemented.  Get rid of it.

Reported-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/virtio-serial-bus.c')
0 files changed, 0 insertions, 0 deletions