virtio-balloon: Separate status handling into separate function
commitdce911c753489609238f91d29bcf945c87a19911
authorAmit Shah <amit.shah@redhat.com>
Wed, 20 Jul 2011 07:49:07 +0000 (20 13:19 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 4 Aug 2011 21:43:09 +0000 (4 16:43 -0500)
tree68283802e01bc46214690340e22dc9a4d4c0ffd1
parent182b9203f8f17198b1f818c23d80a2c698f29fa5
virtio-balloon: Separate status handling into separate function

Separate out the code to retrieve balloon info from the code that sets
balloon values.

This will be used to separate the two callbacks from balloon.c and help
cope with 'balloon 0' on the monitor.  Currently, 'balloon 0' causes a
segfault in monitor_resume().

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