From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943502; cv=none; d=zohomail.com; s=zohoarc; b=mfIMb4+Ocv+9uNydvJLL+UYMhOjexQp5fpLzyh4/uZ3banPkDKykN144PnAnpp+ZftVRiYygt0um2MDZyOR1KjEMJjOFnd29bFgLk0iguLcQxpC6KEgvIg0AQmMhG3wwZNXoQhAhJ4ahat8g5kyDhC+vyoo6uwebPiLSRgnaEac= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943502; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=PqWzXz2ON1FOoo8tsU7PSVMl9XwIC2JTjsY2OX6wn1o=; b=ShOQli/9PDAS4MdK2EZrzRGu/Mh43UCwdzOL+tnBAqwFNJfLhAa5U9vK0y4OESs/GD1+0RrqggewSgfT1c47m9UNKF5VongmiqIr2QrjzuD5TZngLJOpkqRNMeorstCXt3JL2wkyeO59aLrT83ljQR9+6rsbPSL3+Sl7WlImF68= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943502803863.0966031634571; Tue, 5 Sep 2023 12:51:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc3y-0001gh-C3; Tue, 05 Sep 2023 15:50:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3r-0001fR-Qm for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3n-000749-3B for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:07 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-600-BB3llMESPFms-Lv7Ad1jSA-1; Tue, 05 Sep 2023 15:48:49 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 8687A8001EA for ; Tue, 5 Sep 2023 19:48:49 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 973EAC03292; Tue, 5 Sep 2023 19:48:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PqWzXz2ON1FOoo8tsU7PSVMl9XwIC2JTjsY2OX6wn1o=; b=R+w9Vjy2GtVcXFsJDPKQSrcxz2ywVaYE85G2iSt8ip+2yD4yy8JSnxIJTO1Rdq0ltJ3PVk wY+/OFKw/ye9t+LACfegBx0uBI06OKALQKEgPnnHdo6Bw6G19Kuf8yLh7S25YqcXgu1fs9 ltBy8JUW0HpahMgnRxj/jVxn1iMOPdU= X-MC-Unique: BB3llMESPFms-Lv7Ad1jSA-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 1/7] qapi: scripts: add a generator for qapi's examples Date: Tue, 5 Sep 2023 21:48:40 +0200 Message-ID: <20230905194846.169530-2-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943503814100001 Content-Type: text/plain; charset="utf-8" This generator has two goals: 1. Mechanical validation of QAPI examples 2. Generate the examples in a JSON format to be consumed for extra validation. The generator iterates over every Example section, parsing both server and client messages. The generator prints any inconsistency found, for example: | Error: Extra data: line 1 column 39 (char 38) | Location: cancel-vcpu-dirty-limit at qapi/migration.json:2017 | Data: {"execute": "cancel-vcpu-dirty-limit"}, | "arguments": { "cpu-index": 1 } } The generator will output other JSON file with all the examples in the QAPI module that they came from. This can be used to validate the introspection between QAPI/QMP to language bindings, for example: | { "examples": [ | { | "id": "ksuxwzfayw", | "client": [ | { | "sequence-order": 1 | "message-type": "command", | "message": | { "arguments": | { "device": "scratch", "size": 1073741824 }, | "execute": "block_resize" | }, | } ], | "server": [ | { | "sequence-order": 2 | "message-type": "return", | "message": { "return": {} }, | } ] | } | ] } Note that the order matters, as read by the Example section and translated into "sequence-order". A language binding project can then consume this files to Marshal and Unmarshal, comparing if the results are what is to be expected. RFC discussion: https://lists.gnu.org/archive/html/qemu-devel/2022-08/msg04641.html Signed-off-by: Victor Toso --- scripts/qapi/dumpexamples.py | 194 +++++++++++++++++++++++++++++++++++ scripts/qapi/main.py | 2 + 2 files changed, 196 insertions(+) create mode 100644 scripts/qapi/dumpexamples.py diff --git a/scripts/qapi/dumpexamples.py b/scripts/qapi/dumpexamples.py new file mode 100644 index 0000000000..c14ed11774 --- /dev/null +++ b/scripts/qapi/dumpexamples.py @@ -0,0 +1,194 @@ +""" +Dump examples for Developers +""" +# Copyright (c) 2022 Red Hat Inc. +# +# Authors: +# Victor Toso +# +# This work is licensed under the terms of the GNU GPL, version 2. +# See the COPYING file in the top-level directory. + +# Just for type hint on self +from __future__ import annotations + +import os +import json +import random +import string + +from typing import Dict, List, Optional + +from .schema import ( + QAPISchema, + QAPISchemaType, + QAPISchemaVisitor, + QAPISchemaEnumMember, + QAPISchemaFeature, + QAPISchemaIfCond, + QAPISchemaObjectType, + QAPISchemaObjectTypeMember, + QAPISchemaVariants, +) +from .source import QAPISourceInfo + + +def gen_examples(schema: QAPISchema, + output_dir: str, + prefix: str) -> None: + vis =3D QAPISchemaGenExamplesVisitor(prefix) + schema.visit(vis) + vis.write(output_dir) + + +def get_id(random, size: int) -> str: + letters =3D string.ascii_lowercase + return ''.join(random.choice(letters) for i in range(size)) + + +def next_object(text, start, end, context) -> Dict: + # Start of json object + start =3D text.find("{", start) + end =3D text.rfind("}", start, end+1) + + # try catch, pretty print issues + try: + ret =3D json.loads(text[start:end+1]) + except Exception as e: + print("Error: {}\nLocation: {}\nData: {}\n".format( + str(e), context, text[start:end+1])) + return {} + else: + return ret + + +def parse_text_to_dicts(text: str, context: str) -> List[Dict]: + examples, clients, servers =3D [], [], [] + + count =3D 1 + c, s =3D text.find("->"), text.find("<-") + while c !=3D -1 or s !=3D -1: + if c =3D=3D -1 or (s !=3D -1 and s < c): + start, target =3D s, servers + else: + start, target =3D c, clients + + # Find the client and server, if any + if c !=3D -1: + c =3D text.find("->", start + 1) + if s !=3D -1: + s =3D text.find("<-", start + 1) + + # Find the limit of current's object. + # We first look for the next message, either client or server. If = none + # is avaible, we set the end of the text as limit. + if c =3D=3D -1 and s !=3D -1: + end =3D s + elif c !=3D -1 and s =3D=3D -1: + end =3D c + elif c !=3D -1 and s !=3D -1: + end =3D (c < s) and c or s + else: + end =3D len(text) - 1 + + message =3D next_object(text, start, end, context) + if len(message) > 0: + message_type =3D "return" + if "execute" in message: + message_type =3D "command" + elif "event" in message: + message_type =3D "event" + + target.append({ + "sequence-order": count, + "message-type": message_type, + "message": message + }) + count +=3D 1 + + examples.append({"client": clients, "server": servers}) + return examples + + +def parse_examples_of(self: QAPISchemaGenExamplesVisitor, + name: str): + + assert(name in self.schema._entity_dict) + obj =3D self.schema._entity_dict[name] + assert((obj.doc is not None)) + module_name =3D obj._module.name + + # We initialize random with the name so that we get consistent example + # ids over different generations. The ids of a given example might + # change when adding/removing examples, but that's acceptable as the + # goal is just to grep $id to find what example failed at a given test + # with minimum chorn over regenerating. + random.seed(name, version=3D2) + + for s in obj.doc.sections: + if s.name !=3D "Example": + continue + + if module_name not in self.target: + self.target[module_name] =3D [] + + context =3D f'''{name} at {obj.info.fname}:{obj.info.line}''' + examples =3D parse_text_to_dicts(s.text, context) + for example in examples: + self.target[module_name].append({ + "id": get_id(random, 10), + "client": example["client"], + "server": example["server"] + }) + + +class QAPISchemaGenExamplesVisitor(QAPISchemaVisitor): + + def __init__(self, prefix: str): + super().__init__() + self.target =3D {} + self.schema =3D None + + def visit_begin(self, schema): + self.schema =3D schema + + def visit_end(self): + self.schema =3D None + + def write(self: QAPISchemaGenExamplesVisitor, + output_dir: str) -> None: + for filename, content in self.target.items(): + pathname =3D os.path.join(output_dir, "examples", filename) + odir =3D os.path.dirname(pathname) + os.makedirs(odir, exist_ok=3DTrue) + result =3D {"examples": content} + + with open(pathname, "w") as outfile: + outfile.write(json.dumps(result, indent=3D2, sort_keys=3DT= rue)) + + def visit_command(self: QAPISchemaGenExamplesVisitor, + name: str, + info: Optional[QAPISourceInfo], + ifcond: QAPISchemaIfCond, + features: List[QAPISchemaFeature], + arg_type: Optional[QAPISchemaObjectType], + ret_type: Optional[QAPISchemaType], + gen: bool, + success_response: bool, + boxed: bool, + allow_oob: bool, + allow_preconfig: bool, + coroutine: bool) -> None: + + if gen: + parse_examples_of(self, name) + + def visit_event(self: QAPISchemaGenExamplesVisitor, + name: str, + info: Optional[QAPISourceInfo], + ifcond: QAPISchemaIfCond, + features: List[QAPISchemaFeature], + arg_type: Optional[QAPISchemaObjectType], + boxed: bool): + + parse_examples_of(self, name) diff --git a/scripts/qapi/main.py b/scripts/qapi/main.py index 316736b6a2..cf9beac3c9 100644 --- a/scripts/qapi/main.py +++ b/scripts/qapi/main.py @@ -13,6 +13,7 @@ =20 from .commands import gen_commands from .common import must_match +from .dumpexamples import gen_examples from .error import QAPIError from .events import gen_events from .introspect import gen_introspect @@ -54,6 +55,7 @@ def generate(schema_file: str, gen_events(schema, output_dir, prefix) gen_introspect(schema, output_dir, prefix, unmask) =20 + gen_examples(schema, output_dir, prefix) =20 def main() -> int: """ --=20 2.41.0 From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943462; cv=none; d=zohomail.com; s=zohoarc; b=lvv0eFRk+Q/F9rPNZlWyzYDnoy/T7AqG2m0xWnDuda0+GV8/qp5vGDG3JNBqVaq5n1sm7U7lmcz91f4uhXe/pzmKef0czKmFU8z8BlbPpag5CdoV5VkFIfmzmEi9qg173nF7PB3iHtsNntj9b/k9gFTBVo+vbLFr/XtBWiu4yoA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943462; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=DnxMLOdkCYgopxLY1rvdP2RTgzKcmoW8syFULwN7vZ0=; b=ExUOLlqReXjJjwIAH/Vki175Q44EbLG3RJhW/24FAXUUuYGEQ0dCYxZKc8UgBXM9yrJjpmRrqpaBPPVDshfCIZS7OuTGkhwRF2z1vwJDPq5XRRqHqEtw+BqwpGGirZF0TizLPp8haFAJ8m+zPnEamL7Nu1yc0eeKF1Sd3ffvoJ4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943462489304.2852402279416; Tue, 5 Sep 2023 12:51:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc3s-0001fy-Q7; Tue, 05 Sep 2023 15:50:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3p-0001fB-2y for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3m-000748-UW for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:04 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-637-QA7NUfD3M2qUZ7gMzPtocA-1; Tue, 05 Sep 2023 15:48:51 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D4A808279A4 for ; Tue, 5 Sep 2023 19:48:50 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id DB5B2C15BB8; Tue, 5 Sep 2023 19:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943401; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=DnxMLOdkCYgopxLY1rvdP2RTgzKcmoW8syFULwN7vZ0=; b=Lx1CY8qHLLmLkaUFZyXLIMt+J+Je71cDn7HKT53Kf2Rbrpm9XNtLUHMplSGo6R8P+R8WsO d9rcl0qxJnVYkuVwdzDoe+wuxznzrtTfT6LsLvVzmJxpU85WaXocDMHHLStj7z0FjpKgZZ 8dF6eYFsK5FdcLL4aTHvEPZDwNYulrE= X-MC-Unique: QA7NUfD3M2qUZ7gMzPtocA-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 2/7] qapi: fix example of get-win32-socket command Date: Tue, 5 Sep 2023 21:48:41 +0200 Message-ID: <20230905194846.169530-3-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943464941100003 Content-Type: text/plain; charset="utf-8" Example output lacks double quotes. Fix it. Fixes: 4cda177c60 "qmp: add 'get-win32-socket'" Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrang=C3=A9 --- qapi/misc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/misc.json b/qapi/misc.json index cda2effa81..be302cadeb 100644 --- a/qapi/misc.json +++ b/qapi/misc.json @@ -290,7 +290,7 @@ # # Example: # -# -> { "execute": "get-win32-socket", "arguments": { "info": "abcd123..", = fdname": "skclient" } } +# -> { "execute": "get-win32-socket", "arguments": { "info": "abcd123..", = "fdname": "skclient" } } # <- { "return": {} } ## { 'command': 'get-win32-socket', 'data': {'info': 'str', 'fdname': 'str'},= 'if': 'CONFIG_WIN32' } --=20 2.41.0 From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943485; cv=none; d=zohomail.com; s=zohoarc; b=jyHmhPRxMjXVYjMvIQyw2+voPqx6mdLERJa6rQ2ohJV5tOYa0sLOh7K7HNMU5BDZ060ZxJaxY4IIROm5LJ/Quxym3wnW8sIkqnJD5JXZdFN7wjPmcMcIReaPXBge38Etqxg1/qRte1bfTcj/WGtqelME3I2Nrl35VGcD1shlXtA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943485; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=YPCKE2csE0nyLhr/9T2JxhChAyx6hLvWwSy8P9rpor8=; b=ABi2mg/jZtM6YYbgE9xKLPKnzMjORUrllfpIJspr8tjJjdfYlnAJCIlpvq6hEMMyzgrB7d3h3GULfedpgL1M1P2VdJGsfiY7db9Chn2Xu5v06wlVjFKrM7OsMe0mEDWwZSx1mSVB8z6myYbV1fGX3NcGTIj6UDgNYLlAqr5Zrhs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943485379244.19502380628376; Tue, 5 Sep 2023 12:51:25 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc40-0001h4-Bv; Tue, 05 Sep 2023 15:50:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3r-0001fQ-DB for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3m-00072z-Sk for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:06 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-628-41WuccZ0NRKpDmCXj8cI5w-1; Tue, 05 Sep 2023 15:48:52 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 267BC8164E0 for ; Tue, 5 Sep 2023 19:48:52 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3706FC15BB8; Tue, 5 Sep 2023 19:48:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943397; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YPCKE2csE0nyLhr/9T2JxhChAyx6hLvWwSy8P9rpor8=; b=SAinYiq3dMZO4GOuMijer2yR0R4MUxRNMIy/G3C8HqUgnbY6y/G5O7/tlRKUsDxWHL/A+1 L7NztAVv2jI9N6WhpxN9WEyOPOv4QJ7XrAti5iCceyBbM7ddrPaDdTyOkS7T/+Rru1L39n buKYjqgH1InLrXNzr4nD+PSAnORjURw= X-MC-Unique: 41WuccZ0NRKpDmCXj8cI5w-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 3/7] qapi: fix example of dumpdtb command Date: Tue, 5 Sep 2023 21:48:42 +0200 Message-ID: <20230905194846.169530-4-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943487143100007 Content-Type: text/plain; charset="utf-8" Example output has extra end curly bracket. Switch with comma. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrang=C3=A9 --- qapi/machine.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/machine.json b/qapi/machine.json index a08b6576ca..9eb76193e0 100644 --- a/qapi/machine.json +++ b/qapi/machine.json @@ -1684,7 +1684,7 @@ # # Example: # -# -> { "execute": "dumpdtb" } +# -> { "execute": "dumpdtb", # "arguments": { "filename": "fdt.dtb" } } # <- { "return": {} } ## --=20 2.41.0 From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943469; cv=none; d=zohomail.com; s=zohoarc; b=bkae/BU7Pj/8GTtYZrKXNCVuCNlh8SHcd1ovRDLp+FdnzSFyvSv8jUS0+v+GXriJRsPsLdzIIKkrUoYcrLYY5pgw/gdMMKoA/q4b6xCT2q74iBW+fNjQ9VqOzO2WUAUvGprqGUAZjzTwkc7lUJ4FPUnVI8WCDEMK5i6P60G8etM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943469; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=MatSUmxYr5DoLotV5qoZ7llEGcu3HutS02vkRhckVus=; b=OFM6BK35r4+Ez3IaiIy+P0NGOPQkqx2ZrEcdIWK6WM2+uFZpwuYz69Ayf8EdDi6dQONKw2bB3Dhf8DtXLZSKzW9ck0b2M47xhXaePwBm4Xykz2aNzMC0wIbquj7Tq6Ob5fxEA2as06FrAgyoZ4Mzp1G0fCS9vPR3FF76SMh0NPU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943469125658.3937067608574; Tue, 5 Sep 2023 12:51:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc40-0001gj-8o; Tue, 05 Sep 2023 15:50:16 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3r-0001fS-Qz for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3p-0007Go-GU for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:07 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-650-4lFSqYUSNGixRteTb39nmQ-1; Tue, 05 Sep 2023 15:48:53 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 690178A4362 for ; Tue, 5 Sep 2023 19:48:53 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7DBCBC15BB8; Tue, 5 Sep 2023 19:48:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943404; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=MatSUmxYr5DoLotV5qoZ7llEGcu3HutS02vkRhckVus=; b=f5THNKGSJbX6g/ZxLSjXVNQ1FoxCwlPaJntizHgKYQocL5R513Tj1dcRtOYifFeHM0Td8z dVWwSTEWGj0iafJK8p2K3lybw4Dk8SmioLT6B5EeRFMDkNPbdhYBv+7ItIZejwZUUn4/ZX V+r0B40qjCZ+29fMg8YmJu0Y+TvsVWQ= X-MC-Unique: 4lFSqYUSNGixRteTb39nmQ-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 4/7] qapi: fix example of cancel-vcpu-dirty-limit command Date: Tue, 5 Sep 2023 21:48:43 +0200 Message-ID: <20230905194846.169530-5-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943470625100005 Content-Type: text/plain; charset="utf-8" Example output has extra end curly bracket. Remove it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrang=C3=A9 --- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/migration.json b/qapi/migration.json index 8843e74b59..9385b9f87c 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -2010,7 +2010,7 @@ # # Example: # -# -> {"execute": "cancel-vcpu-dirty-limit"}, +# -> {"execute": "cancel-vcpu-dirty-limit", # "arguments": { "cpu-index": 1 } } # <- { "return": {} } ## --=20 2.41.0 From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943466; cv=none; d=zohomail.com; s=zohoarc; b=eP1uiX+yo5Cig2PZrVXGsY0rX73sci5I4+CLjXEUOlWH8ZlmnoeIs8bNoCILmtU/VSdwI8To4LjvgUGCNGcDFBkECTgy9O8a64+8p9j4RTw3e7NF8WU+Pjsb0ElGeXlCLnC2XAwIsstMKfnE5/kBgQ2NaIoGqMu6nP2qARv4ffw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943466; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=XScpzLc8agw3aaYccrT5LahnsjsNTTsv3y/XOx+z70U=; b=UkT9K3OhG8jI4PtasqwSBn2VBCSjE9/h2TY2NDfEsTynJKWZfa+qt7xzxvrc8fRhZZmhvVDSxHnQs7D6TLAtlKp27HXsZgwAinhEKRlbwAQQj1S6q18u42LD8PqcY41s2Ly0eYIMc7/QIbcPYWsmPlc5Dsa8DHNXoANtrGfRcrI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943466484549.5300768262008; Tue, 5 Sep 2023 12:51:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc3w-0001gQ-4K; Tue, 05 Sep 2023 15:50:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3r-0001fP-DG for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:07 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3o-0007Df-7R for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:06 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-678-D6Oacq4YNwGPScW7zFLWBQ-1; Tue, 05 Sep 2023 15:48:54 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A7B4180E99F for ; Tue, 5 Sep 2023 19:48:54 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id BB590C15BB8; Tue, 5 Sep 2023 19:48:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XScpzLc8agw3aaYccrT5LahnsjsNTTsv3y/XOx+z70U=; b=Sy9ZxbhATYvGSpeJNLSQctREhvQnSj6dfE3Jtwiw45U624NBMe+bv3qrVK7GWVGarSJoTb elDqBOQOYZMWdtRk+xzjb0myHtUfvXYfY3wAJlm7N5QDuRtdbMcs+mdsmHn//7Qf2C1UHV HGA/RFm985Dbrjtu/xWBHnkSPcaP/OI= X-MC-Unique: D6Oacq4YNwGPScW7zFLWBQ-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 5/7] qapi: fix example of set-vcpu-dirty-limit command Date: Tue, 5 Sep 2023 21:48:44 +0200 Message-ID: <20230905194846.169530-6-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943468659100001 Content-Type: text/plain; charset="utf-8" Example output has extra end curly bracket. Remove it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrang=C3=A9 --- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/migration.json b/qapi/migration.json index 9385b9f87c..2658cdbcbe 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -1986,7 +1986,7 @@ # # Example: # -# -> {"execute": "set-vcpu-dirty-limit"} +# -> {"execute": "set-vcpu-dirty-limit", # "arguments": { "dirty-rate": 200, # "cpu-index": 1 } } # <- { "return": {} } --=20 2.41.0 From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943469; cv=none; d=zohomail.com; s=zohoarc; b=jOEeY7x+yvYBbpOuk9hexPyPiVF3Fx499sN1g+hdPKgjDG1XO2MQfCH8hzj1ajmfCxeAuMz/cex846r4juNe5G9fYNhqHwIgjT+059SNCc9MDjLFshBMvEXXpSCi57F1pC+sgV05AnOLKlAAIcdE2LlvEn37vgJFHnf9qh3IBIs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943469; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=/CX3HILOE0Qo2KK51ms6vVDBgW2XfXCWSH/n5xpBS1s=; b=SkGxjrjwuRrRkf6ScRV60tRGb50DqsULRTWAXH0Z5x6lXRhpt+rcM9whlz/oqOBWBJ39AvDDD0yfUme0ERhA0IjtfI09Gnr/5FQWwUQjLJsL1NBddnbkuXJo8HlTqru6CkfkAqYlYAQJH5Vhq+e/AFCybK2eQ6XReFjS114WwlY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943469728598.9091249935095; Tue, 5 Sep 2023 12:51:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc49-0001ib-JG; Tue, 05 Sep 2023 15:50:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc41-0001hO-HK for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:18 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc3x-0007I4-UN for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:50:15 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-263-o8UNIzV7MGK2RxNY64SNeA-1; Tue, 05 Sep 2023 15:48:56 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E92798015AA for ; Tue, 5 Sep 2023 19:48:55 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0B14BC15BB8; Tue, 5 Sep 2023 19:48:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943412; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/CX3HILOE0Qo2KK51ms6vVDBgW2XfXCWSH/n5xpBS1s=; b=R7DYICsQ9+Uivv1ncqLOh2Jis5ZDVNwf+rRLK8jpWZx//DfO5bNqI9QrbfgRL4nxMEM7uD FxM5vanZoCy7+PcmO30Cvzoyqdyu4E51520doHtDdMOYAfSIhOmj7ZQiSHgXg+LWom47y3 1LY7n00Dch/Z0ACWWNR6upiWQBn+u4M= X-MC-Unique: o8UNIzV7MGK2RxNY64SNeA-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 6/7] qapi: fix example of calc-dirty-rate command Date: Tue, 5 Sep 2023 21:48:45 +0200 Message-ID: <20230905194846.169530-7-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.129.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943471570100011 Content-Type: text/plain; charset="utf-8" Example output has property name with single quotes. Fix it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrang=C3=A9 --- qapi/migration.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qapi/migration.json b/qapi/migration.json index 2658cdbcbe..45dac41f67 100644 --- a/qapi/migration.json +++ b/qapi/migration.json @@ -1922,7 +1922,7 @@ # Example: # # -> {"execute": "calc-dirty-rate", "arguments": {"calc-time": 1, -# 'sample-pages': 512} } +# "sample-pages": 512} } # <- { "return": {} } ## { 'command': 'calc-dirty-rate', 'data': {'calc-time': 'int64', --=20 2.41.0 From nobody Thu Nov 28 07:42:02 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1693943513; cv=none; d=zohomail.com; s=zohoarc; b=eWaBIEvIX94VIlkUQVAW0ZvcH4dDHJO5Hi1xRK1k3SOzU9/MJzte1HmL+YfXkpqPxRNyfXd0xG6Rrp3ifSKmcUMqLyVSUUu8qSlm6wPme/i39YRKjmhdMHSFh3a3YkVrPBuJZfU8hU/haHHIoc95mEH42Gc/YDhSFL8h9rjKubA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1693943513; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=TZAQU+jfcX5vQmnPXvtMJx14PmghJ2LIOO4NjyKI3Bk=; b=l0zY6h5i0qsRb8lz2s11MrfD3Y4KmLN0JKblNChqDDBQdUhXEbb9TjiLE4XRRWMU4pDyFeArINZ/f5wS6NRS9fsNgjsh7EWLyWceBCKSXxzd6NKHreJD31he18qo930tSAI+CIurgZ/LDpf4s0MrH8MfndSOUo3bN0mJk5pcr8E= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1693943513464246.332063425377; Tue, 5 Sep 2023 12:51:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdc5I-0004n3-Q0; Tue, 05 Sep 2023 15:51:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc5F-0004lt-RJ for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:51:33 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdc5D-0007Uz-Gf for qemu-devel@nongnu.org; Tue, 05 Sep 2023 15:51:33 -0400 Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-142-PQWTLfLKPd-oIwPeEPEGcw-1; Tue, 05 Sep 2023 15:48:57 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 37FC48A4366 for ; Tue, 5 Sep 2023 19:48:57 +0000 (UTC) Received: from tapioca.wind3.hub (unknown [10.45.225.142]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4D09AC15BB8; Tue, 5 Sep 2023 19:48:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1693943490; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=TZAQU+jfcX5vQmnPXvtMJx14PmghJ2LIOO4NjyKI3Bk=; b=W1CdBH3C7VkPcY5cO78XifjussSYikbOveB94702nSS9Ji0NzxvZ45co4DHDRes0uQhORR bsSkNZa9U//Y94koXeInzgDKAJIgwYyKI0/YD+L+22FEvqhR2SgK6jpEyKJs2V792aJWzv xFQkYQ05eJ0WR2BIq27ExrLH8r3ZZxg= X-MC-Unique: PQWTLfLKPd-oIwPeEPEGcw-1 From: Victor Toso To: qemu-devel@nongnu.org Cc: Markus Armbruster , John Snow Subject: [PATCH v1 7/7] qapi: fix example of NETDEV_STREAM_CONNECTED event Date: Tue, 5 Sep 2023 21:48:46 +0200 Message-ID: <20230905194846.169530-8-victortoso@redhat.com> In-Reply-To: <20230905194846.169530-1-victortoso@redhat.com> References: <20230905194846.169530-1-victortoso@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.1 on 10.11.54.8 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=170.10.133.124; envelope-from=victortoso@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1693943514459100001 Content-Type: text/plain; charset="utf-8" Example output was using single quotes. Fix it. Signed-off-by: Victor Toso Reviewed-by: Daniel P. Berrang=C3=A9 --- qapi/net.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qapi/net.json b/qapi/net.json index 313c8a606e..81988e499a 100644 --- a/qapi/net.json +++ b/qapi/net.json @@ -930,9 +930,9 @@ # # Example: # -# <- { 'event': 'NETDEV_STREAM_DISCONNECTED', -# 'data': {'netdev-id': 'netdev0'}, -# 'timestamp': {'seconds': 1663330937, 'microseconds': 526695} } +# <- { "event": "NETDEV_STREAM_DISCONNECTED", +# "data": {"netdev-id": "netdev0"}, +# "timestamp": {"seconds": 1663330937, "microseconds": 526695} } ## { 'event': 'NETDEV_STREAM_DISCONNECTED', 'data': { 'netdev-id': 'str' } } --=20 2.41.0