]> git.proxmox.com Git - qemu.git/commit
virtio-console: Properly initialise class methods
authorAmit Shah <amit.shah@redhat.com>
Wed, 21 Dec 2011 06:58:28 +0000 (12:28 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 21 Dec 2011 21:00:29 +0000 (15:00 -0600)
commit05e7af694ce00dafdc464ca70306fa9dd6f78dcd
tree06c0ced4f1558aced1004634eae18a9bbf775753
parent6640422c172e01d0e191a754d3643a68abca83bc
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>
hw/virtio-console.c