virtio-balloon: rewrite get_current_ram_size()
commite8dc06d225b0a7bbe3dc54495ae001b786a54ee5
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Wed, 10 Feb 2016 08:49:25 +0000 (10 11:49 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Feb 2016 11:14:18 +0000 (25 13:14 +0200)
tree3f87861c49f2198990b056ed4f00a7893e20bf26
parent39de99843e4c15504812e12807728339c54b9194
virtio-balloon: rewrite get_current_ram_size()

Use pc_dimm_built_list() instead of qmp_pc_dimm_device_list()

Actually, Qapi is not related to this internal helper.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-balloon.c