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