From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAhco-0001ZK-If for qemu-devel@nongnu.org; Fri, 25 Jul 2014 11:41:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XAhcf-0001cf-HU for qemu-devel@nongnu.org; Fri, 25 Jul 2014 11:41:38 -0400 Received: from mail-pa0-x230.google.com ([2607:f8b0:400e:c03::230]:48083) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XAhcf-0001cO-Ap for qemu-devel@nongnu.org; Fri, 25 Jul 2014 11:41:29 -0400 Received: by mail-pa0-f48.google.com with SMTP id et14so6289138pad.21 for ; Fri, 25 Jul 2014 08:41:28 -0700 (PDT) From: Sanidhya Kashyap Date: Fri, 25 Jul 2014 21:09:36 +0530 Message-Id: <1406302776-2306-13-git-send-email-sanidhya.iiith@gmail.com> In-Reply-To: <1406302776-2306-1-git-send-email-sanidhya.iiith@gmail.com> References: <1406302776-2306-1-git-send-email-sanidhya.iiith@gmail.com> Subject: [Qemu-devel] [PATCH RFC v2 12/12] VMState test: hmp interface for cancel mechanism List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu list Cc: Sanidhya Kashyap , "Dr. David Alan Gilbert" , Juan Quintela Signed-off-by: Sanidhya Kashyap --- hmp-commands.hx | 14 ++++++++++++++ hmp.c | 6 ++++++ hmp.h | 1 + 3 files changed, 21 insertions(+) diff --git a/hmp-commands.hx b/hmp-commands.hx index 6d15184..fe224fc 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1822,6 +1822,20 @@ STEXI Set the period to @var{period} (int) for vmstate testing process. ETEXI + { + .name = "test_vmstates_cancel", + .args_type = "", + .params = "", + .help = "cancel the current vmstates testing process", + .mhandler.cmd = hmp_test_vmstates_cancel, +}, + +STEXI +@item test_vmstates_cancel +@findex test_vmstates_cancel +Cancel the current vmstates testing process +ETEXI + STEXI @end table ETEXI diff --git a/hmp.c b/hmp.c index f54b0b9..bbff92a 100644 --- a/hmp.c +++ b/hmp.c @@ -1781,3 +1781,9 @@ void hmp_test_vmstates_set_period(Monitor *mon, const QDict *qdict) error_free(err); } } + +void hmp_test_vmstates_cancel(Monitor *mon, const QDict *qdict) +{ + qmp_test_vmstates_cancel(NULL); +} + diff --git a/hmp.h b/hmp.h index e1afde8..1277dbc 100644 --- a/hmp.h +++ b/hmp.h @@ -98,6 +98,7 @@ void hmp_object_del(Monitor *mon, const QDict *qdict); void hmp_info_memdev(Monitor *mon, const QDict *qdict); void hmp_test_vmstates(Monitor *mon, const QDict *qdict); void hmp_test_vmstates_set_period(Monitor *mon, const QDict *qdict); +void hmp_test_vmstates_cancel(Monitor *mon, const QDict *qdict); void object_add_completion(ReadLineState *rs, int nb_args, const char *str); void object_del_completion(ReadLineState *rs, int nb_args, const char *str); void device_add_completion(ReadLineState *rs, int nb_args, const char *str); -- 1.9.3