[Qemu-devel] [PATCH 2/4] hmp: introduce 'writeconfig' command

2017-10-23 Thread Vadim Galitsyn
Add 'writeconfig' command for HMP monitor. This command is a sibling of QMP command 'writeconfig'. This is a simple way to keep track of current state of VM after series of hotplugs and/or hotunplugs of different devices. Signed-off-by: Vadim Galitsyn Signed-off-by: Eduardo

[Qemu-devel] [PATCH 3/4] tests: test-hmp: extend with 'writeconfig' command

2017-10-23 Thread Vadim Galitsyn
Extend list of test cases with 'writeconfig' command. Signed-off-by: Vadim Galitsyn Cc: Dr. David Alan Gilbert Cc: qemu-devel@nongnu.org --- tests/test-hmp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test-hmp.c b/tests/test-hmp.c index 5677fbf775..8e21eee61c 100644 -

[Qemu-devel] [PATCH 4/4] tests: test-hmp: print command execution result

2017-10-23 Thread Vadim Galitsyn
hout error. Signed-off-by: Vadim Galitsyn Cc: Dr. David Alan Gilbert Cc: qemu-devel@nongnu.org --- tests/test-hmp.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/test-hmp.c b/tests/test-hmp.c index 8e21eee61c..1fd8e44eff 100644 --- a/tests/test-hmp.c +++ b/tests/

[Qemu-devel] QMP, HMP: introduce 'writeconfig' command

2017-10-23 Thread Vadim Galitsyn
Hi Guys, This thread is a continuation of discussion started in http://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg03182.html. This series introduces ‘writeconfig’ command support for QMP and HMP monitors. This functionality might be useful for live migration for cases when guest config

[Qemu-devel] [PATCH 1/4] qmp: introduce 'writeconfig' command

2017-10-23 Thread Vadim Galitsyn
Add support for `writeconfig' command for QMP monitor. This is a simple way to keep track of current state of VM after series of hotplugs and/or hotunplugs of different devices. Signed-off-by: Vadim Galitsyn Signed-off-by: Eduardo Otubo Cc: Markus Armbruster Cc: Eric Blake Cc: qemu-

Re: [Qemu-devel] [PATCH v7 2/3] qmp: introduce query-memory-size-summary command

2017-09-14 Thread Vadim Galitsyn
:26 PM, Dr. David Alan Gilbert < dgilb...@redhat.com> wrote: > * Igor Mammedov (imamm...@redhat.com) wrote: > > On Tue, 29 Aug 2017 17:30:21 +0200 > > Vadim Galitsyn wrote: > > > > > Add a new query-memory-size-summary command which provides the > &g

Re: [Qemu-devel] [PATCH v7 0/3] hmp, qmp: 'info memory_size_summary', 'query-memory-size-summary', 'info numa' updates

2017-09-14 Thread Vadim Galitsyn
Igor, David, Thank you! Best regards, Vadim On Thu, Sep 14, 2017 at 12:09 PM, Dr. David Alan Gilbert < dgilb...@redhat.com> wrote: > * Igor Mammedov (imamm...@redhat.com) wrote: > > On Thu, 14 Sep 2017 11:35:36 +0200 > > Vadim Galitsyn wrote: > > > > > H

Re: [Qemu-devel] [PATCH v7 0/3] hmp, qmp: 'info memory_size_summary', 'query-memory-size-summary', 'info numa' updates

2017-09-14 Thread Vadim Galitsyn
Hi Guys, Could you please let me know if you have an update on this topic? Thank you, Vadim On Tue, Aug 29, 2017 at 5:30 PM, Vadim Galitsyn < vadim.galit...@profitbricks.com> wrote: > Hi Guys, > > Sorry for the delay. This is continuation of > http://lists.nongnu.org/archi

[Qemu-devel] [PATCH v7 2/3] qmp: introduce query-memory-size-summary command

2017-08-29 Thread Vadim Galitsyn
UG enabled, no value is reported. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: Igor Mammedov Cc: Eric Blake Cc: qemu-devel@

[Qemu-devel] [PATCH v7 1/3] hmp: extend "info numa" with hotplugged memory information

2017-08-29 Thread Vadim Galitsyn
Report amount of hotplugged memory in addition to total amount per NUMA node. Signed-off-by: Vadim Galitsyn Cc: Eduardo Habkost Cc: David Hildenbrand Cc: qemu-devel@nongnu.org --- include/qemu/typedefs.h | 1 + include/sysemu/numa.h | 7 ++- monitor.c | 9

[Qemu-devel] [PATCH v7 0/3] hmp, qmp: 'info memory_size_summary', 'query-memory-size-summary', 'info numa' updates

2017-08-29 Thread Vadim Galitsyn
Hi Guys, Sorry for the delay. This is continuation of http://lists.nongnu.org/archive/html/qemu-devel/2017-08/msg02937.html. I tried to update all the things according to your input regarding to v6 series. I am attaching all the versions history here in cover letter. Best regards, Vadim v7:

[Qemu-devel] [PATCH v7 3/3] hmp: introduce 'info memory_size_summary' command

2017-08-29 Thread Vadim Galitsyn
that was hot-plugged. If target does not have CONFIG_MEM_HOTPLUG enabled, no value is reported. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus

Re: [Qemu-devel] [PATCH v5 2/3] qmp: introduce query-memory-size-summary command

2017-08-16 Thread Vadim Galitsyn
Hi Guys, Thanks again! Just sent patch v6 which takes into account comments you left. Best regards, Vadim On Wed, Aug 16, 2017 at 8:01 AM, Markus Armbruster wrote: > Vadim Galitsyn writes: > > > Hi Guys, > > > > Thank you for the input! > > > >> &qu

[Qemu-devel] [PATCH v6 2/3] qmp: introduce query-memory-size-summary command

2017-08-16 Thread Vadim Galitsyn
d. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: Igor Mammedov Cc: Eric Blake Cc: qemu-devel@nongnu.org --- hw/mem

[Qemu-devel] [PATCH v6 1/3] Extend "info numa" with hotplugged memory information

2017-08-16 Thread Vadim Galitsyn
Report amount of hotplugged memory in addition to total amount per NUMA node. Signed-off-by: Vadim Galitsyn Cc: Eduardo Habkost Cc: David Hildenbrand Cc: qemu-devel@nongnu.org --- include/qemu/typedefs.h | 1 + include/sysemu/numa.h | 7 ++- monitor.c | 9

[Qemu-devel] [PATCH v6 3/3] hmp: introduce 'info memory_size_summary' command

2017-08-16 Thread Vadim Galitsyn
s not have CONFIG_MEM_HOTPLUG enabled, no value is reported. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: Igor Mammedov Cc: Eric

Re: [Qemu-devel] [PATCH v5 3/3] hmp: introduce 'info memory-size-summary' command

2017-08-15 Thread Vadim Galitsyn
Hi Eric, Thank you for the input. I will update it with the next version. Btw, most of HMP "info *" commands use '-' instead of '_' in names =) Best regards, Vadim On Fri, Jul 28, 2017 at 8:27 PM, Eric Blake wrote: > On 07/28/2017 07:10 AM, Vadim Galit

Re: [Qemu-devel] [PATCH v5 2/3] qmp: introduce query-memory-size-summary command

2017-08-15 Thread Vadim Galitsyn
ank you in advance, Vadim On Tue, Aug 15, 2017 at 9:51 AM, Igor Mammedov wrote: > On Fri, 28 Jul 2017 14:10:43 +0200 > Vadim Galitsyn wrote: > > > Command above provides the following memory information in bytes: > > > > * base-memory - size of "base" memo

[Qemu-devel] [PATCH v5 1/3] Extend "info numa" with hotplugged memory information

2017-07-28 Thread Vadim Galitsyn
Report amount of hotplugged memory in addition to total amount per NUMA node. Signed-off-by: Vadim Galitsyn Cc: Eduardo Habkost Cc: David Hildenbrand Cc: qemu-devel@nongnu.org --- include/qemu/typedefs.h | 1 + include/sysemu/numa.h | 7 ++- monitor.c | 9

Re: [Qemu-devel] [PATCH v4] hmp, qmp: introduce memory-size-summary commands

2017-07-28 Thread Vadim Galitsyn
Hi Guys, This thread is a continuation of discussion from: http://lists.nongnu.org/archive/html/qemu-devel/2017-07/msg01565.html I will post changes list here in cover letter. v5: * hmp: Updated description and '.help' message for 'info memory-size-summary' command. * hmp: Removed '-' ch

[Qemu-devel] [PATCH v5 3/3] hmp: introduce 'info memory-size-summary' command

2017-07-28 Thread Vadim Galitsyn
t does not have CONFIG_MEM_HOTPLUG enabled, no value is reported. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: Igor Mammedov

[Qemu-devel] [PATCH v5 2/3] qmp: introduce query-memory-size-summary command

2017-07-28 Thread Vadim Galitsyn
s reported. Signed-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: Igor Mammedov Cc: Eric Blake Cc: qemu-devel@nongnu.org --- hw/mem

Re: [Qemu-devel] [PATCH v4] hmp, qmp: introduce memory-size-summary commands

2017-07-07 Thread Vadim Galitsyn
;> Sorry for the late review, got a bit overwhelmed... > >> > >> Vadim Galitsyn writes: > >> > >> > Commands above provide the following memory information in bytes: > >> > > >> > * base-memory - amount of unremovable memory specified &

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

[Qemu-devel] [PATCH v4] hmp, qmp: introduce memory-size-summary commands

2017-06-30 Thread Vadim Galitsyn
gned-off-by: Vasilis Liaskovitis Signed-off-by: Mohammed Gamal Signed-off-by: Eduardo Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: Igor Mammedov Cc: Eric Blake Cc: qemu-devel@nongnu.org --- v4: * Commands "info

[Qemu-devel] [PATCH v4] hmp, qmp: introduce memory-size-summary commands

2017-06-30 Thread Vadim Galitsyn
Hi Guys, This thread is a continuation of discussion started at http://lists.nongnu.org/archive/html/qemu-devel/2017-06/msg05972.html. Vadim

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

2017-06-22 Thread Vadim Galitsyn
negotiated, I will come up with test scenario and test case itself. Thank you, Vadim On Tue, Jun 20, 2017 at 4:10 PM, Markus Armbruster wrote: > "Dr. David Alan Gilbert" writes: > > > * Vadim Galitsyn (vadim.galit...@profitbricks.com) wrote: > >> Hi Dave, > &g

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

2017-06-22 Thread Vadim Galitsyn
to additionally provide information about hot-plugged memory per NUMA node and current patch will utilize this functionality. Actual "info memory" command (as well as "query-memory") will provide information as you suggested. Thank you, Vadim On Mon, Jun 19, 2017 at 9:47 AM, D

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

2017-06-14 Thread Vadim Galitsyn
do Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: qemu-devel@nongnu.org --- v3: * Use PRIu64 instead of 'lu' when printing results via HMP. * Report zero hot-plugged memory instead of reporting error w

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

2017-06-14 Thread Vadim Galitsyn
can certainly provide one. But this topic is for another mainling list. Thank you, Vadim On Wed, Jun 14, 2017 at 11:22 AM, Dr. David Alan Gilbert < dgilb...@redhat.com> wrote: > * Vadim Galitsyn (vadim.galit...@profitbricks.com) wrote: > > Commands above provide the following memory i

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

2017-06-13 Thread Vadim Galitsyn
do Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: qemu-devel@nongnu.org --- v2: * Fixed build for targets which do not have CONFIG_MEM_HOTPLUG enabled. hmp-commands-info.hx | 15 +++ hmp.c

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

2017-06-13 Thread Vadim Galitsyn
Hello, Some time ago we came up with the idea to provide the following patch. The story started in https://lists.gnu.org/archive/html/qemu-devel/2012-07/msg01472.html. For our production environment, we need QEMU to report the amount of guest memory, taking into account hot-plugged memory.

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

2017-06-13 Thread Vadim Galitsyn
do Otubo Signed-off-by: Vadim Galitsyn Reviewed-by: Eugene Crosser Cc: Dr. David Alan Gilbert Cc: Markus Armbruster Cc: qemu-devel@nongnu.org --- hmp-commands-info.hx | 15 +++ hmp.c| 14 ++ hmp.h| 1 + qapi-