balloon: Don't allow multiple balloon handler registrations
authorAmit Shah <amit.shah@redhat.com>
Wed, 27 Jul 2011 06:58:19 +0000 (12:28 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 21:43:09 +0000 (16:43 -0500)
commit8c4d3c5e0bd675ef11ec232a94e0549e09671032
tree9b97d249f540bea9130e0f110cef2400f58ccd0c
parent28ae9314a84b1c6dc09745db383038e0694830d2
balloon: Don't allow multiple balloon handler registrations

Multiple balloon devices don't make sense; disallow more than one
registration attempt to register handlers.

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