virtio-balloon: Check if balloon registration failed
authorAmit Shah <amit.shah@redhat.com>
Wed, 27 Jul 2011 06:59:33 +0000 (12:29 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 21:43:09 +0000 (16:43 -0500)
commit53d825c15bc7fd20c6abc3f08125a17c63fbd680
tree65fc217c5fd47c5ed0fce6845f572bf20c7183ab
parent8c4d3c5e0bd675ef11ec232a94e0549e09671032
virtio-balloon: Check if balloon registration failed

Multiple balloon registrations are not allowed; check if the
registration with the qemu balloon api succeeded.  If not, fail the
device init.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio-balloon.c
hw/virtio-pci.c