From patchwork Wed Jul 10 21:03:06 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomoki Sekiyama X-Patchwork-Id: 258252 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 826CE2C023D for ; Thu, 11 Jul 2013 07:58:18 +1000 (EST) Received: from localhost ([::1]:44906 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux1ZU-000646-33 for incoming@patchwork.ozlabs.org; Wed, 10 Jul 2013 17:05:08 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux1Xq-0005ND-HS for qemu-devel@nongnu.org; Wed, 10 Jul 2013 17:03:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ux1Xn-0003oe-Pt for qemu-devel@nongnu.org; Wed, 10 Jul 2013 17:03:26 -0400 Received: from usindpps04.hds.com ([207.126.252.17]:60984) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ux1Xn-0003oZ-LE for qemu-devel@nongnu.org; Wed, 10 Jul 2013 17:03: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=K/sWZmljxtylCsa2mOh1iSWlMo6z1kc294T8h8zqaEo=; b=p9ThyKylBtpouMk/4bhVqn4rcpTFQlGLeeuFiJhnNHPHlqkDa6KZBJ2I7gS4X8QFTZR0 rhYxrKJfFTeE0X5HzqA9xoy+9EjxJL3jM0WUc4NSQ0xul2LAgJ6JQsEmeF9nHuBvB+ni r38OXS8pPzId648y2L9AW3Njk9sDRMwjycayS1RSXVCIW4kLqASWYHhLlA29+sLOahPu 8wfdNjabe0RoeUMSH6AxRCJhWpfnk5jdr2kxP79JNRA+FKAirOvJayl63Bz9BWcuQ6Rt Czqx1OJl52AqIY+qKhBv7N582n8F90KN/gwff39rElx3wwLRj/fML8KXyhrtKZ770nI1 wQ== Received: from usindmail02.hds.com (usindmail02 [207.126.252.21]) by usindpps04.hds.com (8.14.5/8.14.5) with ESMTP id r6AL38eC029127; Wed, 10 Jul 2013 17:03:08 -0400 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 r6AL37VP029902; Wed, 10 Jul 2013 17:03:07 -0400 (EDT) To: qemu-devel@nongnu.org From: Tomoki Sekiyama Date: Wed, 10 Jul 2013 17:03:06 -0400 Message-ID: <20130710210306.31600.42353.stgit@hds.com> In-Reply-To: <20130710210223.31600.53856.stgit@hds.com> References: <20130710210223.31600.53856.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-10_08:2013-07-10, 2013-07-10, 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-1307100201 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 207.126.252.17 Cc: libaiqing@huawei.com, ghammer@redhat.com, stefanha@gmail.com, mdroth@linux.vnet.ibm.com, lcapitulino@redhat.com, vrozenfe@redhat.com, Paolo Bonzini , seiji.aguchi@hds.com, Laszlo Ersek , areis@redhat.com Subject: [Qemu-devel] [PATCH v6 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 --- 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)