From patchwork Fri Nov 27 13:35:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Shinkevich X-Patchwork-Id: 11936357 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 320B2C2D0E4 for ; Fri, 27 Nov 2020 13:40:08 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id AF6D12224E for ; Fri, 27 Nov 2020 13:40:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF6D12224E Authentication-Results: mail.kernel.org; dmarc=pass (p=none dis=none) header.from=nongnu.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:44810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kidyo-00011F-Nd for qemu-devel@archiver.kernel.org; Fri, 27 Nov 2020 08:40:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46110) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kidvG-0005kc-S9; Fri, 27 Nov 2020 08:36:27 -0500 Received: from relay.sw.ru ([185.231.240.75]:52350 helo=relay3.sw.ru) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kidv5-000353-5u; Fri, 27 Nov 2020 08:36:25 -0500 Received: from [172.16.25.136] (helo=localhost.sw.ru) by relay3.sw.ru with esmtp (Exim 4.94) (envelope-from ) id 1kiduZ-00AfjY-KL; Fri, 27 Nov 2020 16:35:43 +0300 To: qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, kwolf@redhat.com, mreitz@redhat.com, mdroth@linux.vnet.ibm.com, thuth@redhat.com, lvivier@redhat.com, armbru@redhat.com, dgilbert@redhat.com, pbonzini@redhat.com, den@openvz.org, vsementsov@virtuozzo.com, andrey.shinkevich@virtuozzo.com Subject: [PATCH v3 0/5] Increase amount of data for monitor to read Date: Fri, 27 Nov 2020 16:35:41 +0300 Message-Id: <1606484146-913540-1-git-send-email-andrey.shinkevich@virtuozzo.com> X-Mailer: git-send-email 1.8.3.1 Received-SPF: pass client-ip=185.231.240.75; envelope-from=andrey.shinkevich@virtuozzo.com; helo=relay3.sw.ru X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Reply-to: Andrey Shinkevich X-Patchwork-Original-From: Andrey Shinkevich via From: Andrey Shinkevich The subject was discussed here: https://lists.gnu.org/archive/html/qemu-devel/2017-05/msg00206.html https://patchew.org/QEMU/20190610105906.28524-1-dplotnikov@virtuozzo.com/# Message-ID: <31dd78ba-bd64-2ed6-3c8f-eed4e904d14c@virtuozzo.com> and v2: Message-Id: <1606146274-246154-1-git-send-email-andrey.shinkevich@virtuozzo.com> This series is a solution for the issue with overflow of the monitor queue with QMP requests if we keep the maximum queue length unchanged (=8). v3: 01: New 02: New 03: The additional little JSON parser removed and the resources of the existing JSON parser were used to track the end of a QMP command. 04: The amount of read input data increases only. Andrey Shinkevich (4): monitor: change function obsolete name in comments monitor: drain requests queue with 'channel closed' event monitor: let QMP monitor track JSON message content monitor: increase amount of data for monitor to read Vladimir Sementsov-Ogievskiy (1): iotests: 129 don't check backup "busy" include/qapi/qmp/json-parser.h | 5 ++-- monitor/monitor.c | 2 +- monitor/qmp.c | 66 ++++++++++++++++++++++++------------------ qga/main.c | 2 +- qobject/json-lexer.c | 30 +++++++++++++------ qobject/json-parser-int.h | 8 +++-- qobject/json-streamer.c | 15 +++++----- qobject/qjson.c | 2 +- tests/qemu-iotests/129 | 1 - tests/qtest/libqtest.c | 2 +- 10 files changed, 79 insertions(+), 54 deletions(-)