Re: [Qemu-devel] [PATCH v5 10/11] Dump: add qmp command "query-dump"

2015-12-06 Thread Peter Xu
On Mon, Dec 07, 2015 at 02:21:44PM +0800, Fam Zheng wrote: > On Mon, 12/07 13:56, Peter Xu wrote: > > /* send DUMP_COMPLETED message (unconditionally) */ > > -qapi_event_send_dump_completed(!!local_err, (local_err ? \ > > +result = qmp_query_dump(NULL); > > +/* should never fails *

Re: [Qemu-devel] [PATCH v5 10/11] Dump: add qmp command "query-dump"

2015-12-06 Thread Fam Zheng
On Mon, 12/07 13:56, Peter Xu wrote: > When dump-guest-memory is requested with detach flag, after its > return, user could query its status using "query-dump" command (with > no argument). The result contains: > > - status: current dump status > - completed: bytes written in the latest dump > - t

[Qemu-devel] [PATCH v5 10/11] Dump: add qmp command "query-dump"

2015-12-06 Thread Peter Xu
When dump-guest-memory is requested with detach flag, after its return, user could query its status using "query-dump" command (with no argument). The result contains: - status: current dump status - completed: bytes written in the latest dump - total: bytes to write in the latest dump >From comp