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=-16.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 6ADC2C433FE for ; Thu, 16 Sep 2021 15:04:32 +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 118F760FC0 for ; Thu, 16 Sep 2021 15:04:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 118F760FC0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=nongnu.org Received: from localhost ([::1]:41264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mQswB-0000Us-0B for qemu-devel@archiver.kernel.org; Thu, 16 Sep 2021 11:04:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQsto-0006jH-TA for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:02:05 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:41821) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mQstm-0003WH-5I for qemu-devel@nongnu.org; Thu, 16 Sep 2021 11:02:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1631804520; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=38WB3fz79AYdQTogOklCqZdExvJ42LVBLDhwdCNMlq8=; b=OpDK+waBMk0JHnzyOyiAVg/EzNDB/6X+/tKBV943FtFyQMCEHM0cLjA+5ktOvEHcbtYI85 bzLAwrSbeC7Y2TTfcWW4SoRrbgTEHX4+3jddjdApNSy6y66mfKwEEr2czzd8QZNfVzU22h BctFvMRP/VuugoggsX5mqkJkpZq0p+0= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-6-JO6VAih8OzaXOwLDGnJmtA-1; Thu, 16 Sep 2021 11:01:59 -0400 X-MC-Unique: JO6VAih8OzaXOwLDGnJmtA-1 Received: by mail-wm1-f70.google.com with SMTP id 201-20020a1c04d2000000b0030b3e4fdcfbso475282wme.0 for ; Thu, 16 Sep 2021 08:01:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=38WB3fz79AYdQTogOklCqZdExvJ42LVBLDhwdCNMlq8=; b=1tU7xXWvGbdzU60Af65yLpn9odoc3SMv67G8CqpzU9o6wkTEJhYKgFxLevOyU3gCzX 0a2T2laTI7VfvNw+n3AZKJwapMA4Yr6x8D3AMix22/4MBQ4rkHqqHV7T+IZZjOTOmLsd ystpLMhGsV/9W4OfrPHmMi7WK0Tlg1M5/Ut1NdbyjBvoMdHqRfnOuNN8QSg3tQjjkWer jwSyL2e9zBLRJ13xm7BmbKn1x/ChGxohIg+k5qEgcMycm9RUBwFB3WmEeZYNw8l3XyBd HMvyLQChH5RteAp/0CPWw3UfKKRL/9Z6+AFvJj5+/5P/O/3hk4091nlfvaBlsw/Qixhs Jf5Q== X-Gm-Message-State: AOAM532aYDPibhkdi03oH7CJVMeh2SvW4UJxFcpAwDRnCVuqkqo3Dvrv C5jWLzKK8vs5HwqnGir9q1JaIc2xqmmaaxP4hgROtY2gEsejy3A+dQrwn4T4YFfoLlIckjOV5pW Tas68Krw+w4rquHw= X-Received: by 2002:adf:e6c9:: with SMTP id y9mr6709121wrm.429.1631804518457; Thu, 16 Sep 2021 08:01:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpHtlzg4Xi48jRGm9fJC/o5qOqm7cCnRnmTCvq64R7avpF+hV6kdoxlygDPtsuagykaJ4ViQ== X-Received: by 2002:adf:e6c9:: with SMTP id y9mr6709110wrm.429.1631804518335; Thu, 16 Sep 2021 08:01:58 -0700 (PDT) Received: from dresden.str.redhat.com ([2a02:908:1e48:3780:4451:9a65:d4e9:9bb6]) by smtp.gmail.com with ESMTPSA id c2sm3657799wrs.60.2021.09.16.08.01.57 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Sep 2021 08:01:57 -0700 (PDT) Subject: Re: [PATCH 10/22] qapi: Convert simple union TransactionAction to flat one To: Markus Armbruster , qemu-devel@nongnu.org References: <20210913123932.3306639-1-armbru@redhat.com> <20210913123932.3306639-11-armbru@redhat.com> From: Hanna Reitz Message-ID: <9f8db6ae-1923-a3d0-c305-bcbce055f7c3@redhat.com> Date: Thu, 16 Sep 2021 17:01:56 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <20210913123932.3306639-11-armbru@redhat.com> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=hreitz@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Received-SPF: pass client-ip=170.10.133.124; envelope-from=hreitz@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -46 X-Spam_score: -4.7 X-Spam_bar: ---- X-Spam_report: (-4.7 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.392, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-1.488, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , jsnow@redhat.com, eblake@redhat.com, marcandre.lureau@redhat.com Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 13.09.21 14:39, Markus Armbruster wrote: > Simple unions predate flat unions. Having both complicates the QAPI > schema language and the QAPI generator. We haven't been using simple > unions in new code for a long time, because they are less flexible and > somewhat awkward on the wire. > > To prepare for their removal, convert simple union TransactionAction > to an equivalent flat one. Adds some boilerplate to the schema, which > is a bit ugly, but a lot easier to maintain than the simple union > feature. > > Cc: Kevin Wolf > Cc: Hanna Reitz > Signed-off-by: Markus Armbruster > --- > qapi/transaction.json | 111 +++++++++++++++++++++++++++++++++++++----- > 1 file changed, 99 insertions(+), 12 deletions(-) Acked-by: Hanna Reitz