virtio-balloon: Separate status handling into separate function
commit4a97e18b878afb95d2bc6a027f0d9b38e358d142
authorAmit Shah <amit.shah@redhat.com>
Wed, 20 Jul 2011 07:49:07 +0000 (20 13:19 +0530)
committerAmit Shah <amit.shah@redhat.com>
Tue, 26 Jul 2011 05:51:13 +0000 (26 11:21 +0530)
tree54a55e76f473db15f899ace77c34247c798ae106
parentf1ee0a0ebda763f39f8b8aa289fd771133c9971b
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