From patchwork Wed Jul 31 22:25:15 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomoki Sekiyama X-Patchwork-Id: 263824 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 988402C00A6 for ; Thu, 1 Aug 2013 08:43:20 +1000 (EST) Received: from localhost ([::1]:60610 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4f6z-0007HO-Sq for incoming@patchwork.ozlabs.org; Wed, 31 Jul 2013 18:43:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4f6c-0007GC-HA for qemu-devel@nongnu.org; Wed, 31 Jul 2013 18:43:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V4f6R-0001h6-DW for qemu-devel@nongnu.org; Wed, 31 Jul 2013 18:42:54 -0400 Received: from usindpps06.hds.com ([207.126.252.19]:40855) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V4epf-0004FV-5L for qemu-devel@nongnu.org; Wed, 31 Jul 2013 18:25:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hds.com; h=subject : to : from : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=mail1; bh=LbMoaZFZRY+okAejsoUzLkzTRf3VxXYZmbPqhGzje/o=; b=B1O6bwSJw7YjSvt493nkzLg3sLI1uscZFG2rm34Fapm5MQ4shPkaYM31wjZwMq7XsKeK QebbeIdDQ4dxzEBaVrR9N1Mah9oxPVbySxeSb3MKlr+3h2Wi6/F4MhQjizurcrDtYjkg 5KqNnkCEm7wEsk/xwnr2Vaj25tZiSVxD7X+8PyNCHWvcGIKDh4OnHbksolTVrqayMIMG pOLyUrMMOd64EYqaWYhQmdOB+qju9dJanUHpJx4zGOgdpU93x1iMKYq35q1LSo3U+zJ/ z4p1185KwStncKui2HyAbmPwnpMB0LVhZQER3Rbqm0CS9b3ghg9Dw2dCHW1ml3KQszin SQ== Received: from usindmail02.hds.com (usindmail02 [207.126.252.21]) by usindpps06.hds.com (8.14.5/8.14.5) with ESMTP id r6VMPHee005324; Wed, 31 Jul 2013 15:25:17 -0700 Received: from hds.com (usindnetf5d-vlan47float.corp.hds.com [10.74.73.11]) by usindmail02.hds.com (8.14.1/8.14.1) with ESMTP id r6VMPGwT000062; Wed, 31 Jul 2013 18:25:16 -0400 (EDT) To: qemu-devel@nongnu.org From: Tomoki Sekiyama Date: Wed, 31 Jul 2013 18:25:15 -0400 Message-ID: <20130731222515.13673.34918.stgit@hds.com> In-Reply-To: <20130731222435.13673.16685.stgit@hds.com> References: <20130731222435.13673.16685.stgit@hds.com> User-Agent: StGit/0.16 MIME-Version: 1.0 X-Proofpoint-SPF-Result: pass X-Proofpoint-SPF-Record: v=spf1 mx ip4:207.126.244.0/26 ip4:207.126.252.0/25 include:mktomail.com include:cloud.hds.com ~all X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-07-31_09:2013-07-31, 2013-07-31, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=outbound_policy score=0 spamscore=0 suspectscore=1 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1305240000 definitions=main-1307310193 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 207.126.252.19 Cc: libaiqing@huawei.com, ghammer@redhat.com, stefanha@gmail.com, Michael Roth , lcapitulino@redhat.com, vrozenfe@redhat.com, Paolo Bonzini , seiji.aguchi@hds.com, Laszlo Ersek , areis@redhat.com Subject: [Qemu-devel] [PATCH v9 10/10] QMP/qemu-ga-client: Make timeout longer for guest-fsfreeze-freeze command X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org guest-fsfreeze-freeze command can take longer than 3 seconds when heavy disk I/O is running. To avoid unexpected timeout, this changes the timeout to 60 seconds (timeout of pre-commit phase of VSS). Signed-off-by: Tomoki Sekiyama Reviewed-by: Paolo Bonzini Reviewed-by: Laszlo Ersek Reviewed-by: Michael Roth --- QMP/qemu-ga-client | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QMP/qemu-ga-client b/QMP/qemu-ga-client index 46676c3..b5f7e7c 100755 --- a/QMP/qemu-ga-client +++ b/QMP/qemu-ga-client @@ -267,7 +267,9 @@ def main(address, cmd, args): print('Hint: qemu is not running?') sys.exit(1) - if cmd != 'ping': + if cmd == 'fsfreeze' and args[0] == 'freeze': + client.sync(60) + elif cmd != 'ping': client.sync() globals()['_cmd_' + cmd](client, args)