virtio-balloon: Check if balloon registration failed
commitab640dbfc04651ede92495a4067c826db068c1a7
authorAmit Shah <amit.shah@redhat.com>
Wed, 27 Jul 2011 06:59:33 +0000 (27 12:29 +0530)
committerAmit Shah <amit.shah@redhat.com>
Thu, 28 Jul 2011 09:40:19 +0000 (28 15:10 +0530)
tree1272d8d1898846d8a16d61976e1d83f9439749e2
parenteaa8b2778c182c8f795970dd46fef5b039fb741c
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