balloon: Improve use of qapi visitor
commit9dbb8fa7eff6e5e4cfd83ea26dc67f8404b84aa2
authorEric Blake <eblake@redhat.com>
Fri, 29 Jan 2016 13:48:45 +0000 (29 06:48 -0700)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 8 Feb 2016 16:29:55 +0000 (8 17:29 +0100)
tree976a5d85bfaf10356088e37110b19d44f48b9401
parent014791b0df927226b794d14696724b9c9c0583d0
balloon: Improve use of qapi visitor

Rework the control flow of balloon_stats_get_all() to make it
easier for a later patch to split visit_end_struct().  Also
switch to the uint64 visitor to match the data type.

Signed-off-by: Eric Blake <eblake@redhat.com>
Message-Id: <1454075341-13658-10-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/virtio/virtio-balloon.c