Re: [Qemu-devel] [PATCH v3] hmp, qmp: introduce "info memory" and "query-memory" commands

2017-06-30 Thread Vadim Galitsyn
Hi Guys, Thank you for the input. Please find updated patch v4 at http://lists.nongnu.org/archive/html/qemu-devel/2017-06/msg07065.html. Vadim On Tue, Jun 27, 2017 at 4:14 PM, Eric Blake wrote: > On 06/27/2017 09:05 AM, Igor Mammedov wrote: > > On Wed, 14 Jun 2017 17:21:06 +0200 > > Vadim Gali

Re: [Qemu-devel] [PATCH v3] hmp, qmp: introduce "info memory" and "query-memory" commands

2017-06-27 Thread Eric Blake
On 06/27/2017 09:05 AM, Igor Mammedov wrote: > On Wed, 14 Jun 2017 17:21:06 +0200 > Vadim Galitsyn wrote: > >> +void hmp_info_memory(Monitor *mon, const QDict *qdict) >> +{ >> +Error *err = NULL; >> +MemoryInfo *info = qmp_query_memory(&err); >> +if (info) { >> +monitor_print

Re: [Qemu-devel] [PATCH v3] hmp, qmp: introduce "info memory" and "query-memory" commands

2017-06-27 Thread Igor Mammedov
On Wed, 14 Jun 2017 17:21:06 +0200 Vadim Galitsyn wrote: > Commands above provide the following memory information in bytes: > > * base-memory - amount of static memory specified > with '-m' option at the start of the QEMU process. > > * hot-plug-memory - amount of memory that was hot-p

[Qemu-devel] [PATCH v3] hmp, qmp: introduce "info memory" and "query-memory" commands

2017-06-14 Thread Vadim Galitsyn
Commands above provide the following memory information in bytes: * base-memory - amount of static memory specified with '-m' option at the start of the QEMU process. * hot-plug-memory - amount of memory that was hot-plugged. * ballooned-actual-memory - size of the memory that remains