From patchwork Mon Jan 25 13:23:08 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Markus Armbruster X-Patchwork-Id: 43632 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3449C1007D2 for ; Tue, 26 Jan 2010 00:46:17 +1100 (EST) Received: from localhost ([127.0.0.1]:40340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZPAJ-0007ym-J4 for incoming@patchwork.ozlabs.org; Mon, 25 Jan 2010 08:39:39 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZOuZ-00011z-Hp for qemu-devel@nongnu.org; Mon, 25 Jan 2010 08:23:23 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZOuR-0000uB-Ko for qemu-devel@nongnu.org; Mon, 25 Jan 2010 08:23:19 -0500 Received: from [199.232.76.173] (port=42841 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZOuR-0000tv-8E for qemu-devel@nongnu.org; Mon, 25 Jan 2010 08:23:15 -0500 Received: from oxygen.pond.sub.org ([213.239.205.148]:60574) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZOuQ-0003U7-Lq for qemu-devel@nongnu.org; Mon, 25 Jan 2010 08:23:15 -0500 Received: from blackfin.pond.sub.org (pD9E3A875.dip.t-dialin.net [217.227.168.117]) by oxygen.pond.sub.org (Postfix) with ESMTPA id 684632E2AF5 for ; Mon, 25 Jan 2010 14:22:57 +0100 (CET) Received: by blackfin.pond.sub.org (Postfix, from userid 500) id 69EEE42E; Mon, 25 Jan 2010 14:23:09 +0100 (CET) From: Markus Armbruster To: qemu-devel@nongnu.org Date: Mon, 25 Jan 2010 14:23:08 +0100 Message-Id: <1264425788-8245-9-git-send-email-armbru@redhat.com> X-Mailer: git-send-email 1.6.6 In-Reply-To: <1264425788-8245-1-git-send-email-armbru@redhat.com> References: <1264425788-8245-1-git-send-email-armbru@redhat.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH v3 8/8] monitor: convert do_migrate_set_downtime() to QObject X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Markus Armbruster --- migration.c | 3 ++- migration.h | 3 ++- qemu-monitor.hx | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/migration.c b/migration.c index 7551953..5b28e42 100644 --- a/migration.c +++ b/migration.c @@ -132,7 +132,8 @@ uint64_t migrate_max_downtime(void) return max_downtime; } -void do_migrate_set_downtime(Monitor *mon, const QDict *qdict) +void do_migrate_set_downtime(Monitor *mon, const QDict *qdict, + QObject **ret_data) { double d; diff --git a/migration.h b/migration.h index 3ac208b..65572c1 100644 --- a/migration.h +++ b/migration.h @@ -60,7 +60,8 @@ void do_migrate_set_speed(Monitor *mon, const QDict *qdict, QObject **ret_data); uint64_t migrate_max_downtime(void); -void do_migrate_set_downtime(Monitor *mon, const QDict *qdict); +void do_migrate_set_downtime(Monitor *mon, const QDict *qdict, + QObject **ret_data); void do_info_migrate_print(Monitor *mon, const QObject *data); diff --git a/qemu-monitor.hx b/qemu-monitor.hx index 9257d9c..213a2de 100644 --- a/qemu-monitor.hx +++ b/qemu-monitor.hx @@ -778,7 +778,8 @@ ETEXI .args_type = "value:T", .params = "value", .help = "set maximum tolerated downtime (in seconds) for migrations", - .mhandler.cmd = do_migrate_set_downtime, + .user_print = monitor_user_noop, + .mhandler.cmd_new = do_migrate_set_downtime, }, STEXI