diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-21 11:41:37 -0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-27 11:48:47 -0200 |
commit | 96637bcdf9e00db77265229d3d30d952bdde74be (patch) | |
tree | 2b80f47ae6c1214205118a317f29297f2a19b650 /monitor.c | |
parent | d1f29646f21321e60d1be4e72ac3b6caaa0239cc (diff) | |
download | hqemu-96637bcdf9e00db77265229d3d30d952bdde74be.zip hqemu-96637bcdf9e00db77265229d3d30d952bdde74be.tar.gz |
qapi: Convert query-balloon
Please, note that some of the code supporting memory statistics is
still around (eg. virtio_balloon_receive_stats() and reset_stats()).
Also, the qmp_query_balloon() function is synchronous and thus doesn't
make any use of the (not fully working) monitor's asynchronous command
support (the old non-qapi implementation did).
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r-- | monitor.c | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -2904,9 +2904,7 @@ static const mon_cmd_t info_cmds[] = { .args_type = "", .params = "", .help = "show balloon information", - .user_print = monitor_print_balloon, - .mhandler.info_async = do_info_balloon, - .flags = MONITOR_CMD_ASYNC, + .mhandler.info = hmp_info_balloon, }, { .name = "qtree", @@ -2964,15 +2962,6 @@ static const mon_cmd_t qmp_query_cmds[] = { .user_print = do_pci_info_print, .mhandler.info_new = do_pci_info, }, - { - .name = "balloon", - .args_type = "", - .params = "", - .help = "show balloon information", - .user_print = monitor_print_balloon, - .mhandler.info_async = do_info_balloon, - .flags = MONITOR_CMD_ASYNC, - }, { /* NULL */ }, }; |