From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:e8d:0:0:0:0:0 with SMTP id 135csp3766904lfo; Mon, 1 Feb 2021 13:32:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMdoiLaOsk261LI4aV0eCCwkhrnWF1CwWh8uTKuAIxeSNd0yzmEWjOO2OprLN4DOtVCvWP X-Received: by 2002:a25:8590:: with SMTP id x16mr17350375ybk.435.1612215128223; Mon, 01 Feb 2021 13:32:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612215128; cv=none; d=google.com; s=arc-20160816; b=m5qi2idZVucyxWfROdpFLCGVDGclig7CtbdgB3tRT4ia4WkML0XDZfbSfwjKBii4NC eB6FWllLuO0QT98yd0BAmzENz3yuH8YyGSTUsfVzwQTh6292FkCiLKW/vOgeoXCoofbx whXvmhZABOeqIrWGnE8VHJc6her03NF7SHM8b9Wnfjs0dO2rmfRYpCNdeDhTMLca4gO6 WA9dQfFMGsKmFI0jPVrWQLRrmmmVag+YPFw6gA2dMGtrg5Ixt1Eii8AqTiDXe9txIPFy EU8epF8zuXWi3sHxp1KT3xoFF8s9X0GB3dy6V/ri4E0RihL8LRxsK65/3kO0SMzbhgfD d6PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :content-disposition:in-reply-to:mime-version:references:message-id :subject:to:from:date:dkim-signature; bh=F6a7owyi7kE7vggh++r5MmpR+z5K4iTujsROfQBdO74=; b=M1s16p7NDG/KfPufp8fhnfoyFTT+8kTKK7e6FOl0zQWdHaK0bs7SaIRzN+0nuA03qF praeYK/GJhXIUiwo6JKkjRbapsEevWLLwGQiRKM2Q0mCEgjk5HP9v5+BjBYGQzjHxjd8 KOueLZ0a1k4KsYStjIg3m49DJL/hZrT3oQeHhWH0sUR5NkJ54JGgkHB+CSmaDeK72egt BgfqMWZcgBUNlELD4Tj9ew+CunGELwsrreDqSbuCFtk7mRhbLgquok8mXWhoLMX8fQiX klnkn89t9PvtEYQQcTSySAHe0O32xeG3/WxavdZ/FKxrpUrEaJ3N51wSlH/WyVi9k9BK ADnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=OFajsyIG; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id j12si12864422ybj.387.2021.02.01.13.32.08 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Feb 2021 13:32:08 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=OFajsyIG; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:37394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6gnn-000401-Fd for alex.bennee@linaro.org; Mon, 01 Feb 2021 16:32:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6gn7-0003xE-76 for qemu-devel@nongnu.org; Mon, 01 Feb 2021 16:31:25 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:51946) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1l6gn3-00060g-Tp for qemu-devel@nongnu.org; Mon, 01 Feb 2021 16:31:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1612215080; 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=F6a7owyi7kE7vggh++r5MmpR+z5K4iTujsROfQBdO74=; b=OFajsyIG9qCrOfk+AZQv9dcVRTEl6i0tfWl2nQ6CN0ZI5A2ug0FSFoZnZ4szdsZuYehnZN hzXjHl7p0G4EpTfuF6ZxeZUK5wKCLCCufDorAnAUO5WXDzMii42FiT6f5yAVLb1kDS3TP5 +sn6+bmpaeufH0p0Wv1UdeYIp8AaKxM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-38-Wa4X6_oxN6ybw5GTL734-A-1; Mon, 01 Feb 2021 16:31:17 -0500 X-MC-Unique: Wa4X6_oxN6ybw5GTL734-A-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 32E3A8049D0; Mon, 1 Feb 2021 21:31:15 +0000 (UTC) Received: from localhost (ovpn-3-197.rdu2.redhat.com [10.22.3.197]) by smtp.corp.redhat.com (Postfix) with ESMTP id 448535D9DC; Mon, 1 Feb 2021 21:31:05 +0000 (UTC) Date: Mon, 1 Feb 2021 16:31:04 -0500 From: Eduardo Habkost To: Paolo Bonzini Subject: Re: [PATCH RFC 0/1] QOM type names and QAPI Message-ID: <20210201213104.GG3872207@habkost.net> References: <20210129081519.3848145-1-armbru@redhat.com> <20210129121752.GJ4001740@redhat.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=ehabkost@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=63.128.21.124; envelope-from=ehabkost@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.351, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , "Michael S. Tsirkin" , Mark Cave-Ayland , QEMU Developers , KONRAD Frederic , Gerd Hoffmann , "Edgar E. Iglesias" , Max Reitz , Qemu-block , Juan Quintela , Andrey Smirnov , Markus Armbruster , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Artyom Tarasenko , Alistair Francis , "Dr. David Alan Gilbert" , Fabien Chouteau , qemu-arm , Peter Chubb , John Snow , Kevin Wolf , Daniel =?utf-8?B?UC4gQmVycmFuZ8Op?= , Jean-Christophe DUBOIS Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: Ymjx2iQaUiQn On Fri, Jan 29, 2021 at 02:25:56PM +0100, Paolo Bonzini wrote: > On 29/01/21 13:17, Daniel P. Berrangé wrote: > > > On this one, my vote would be "no". "Versioned machine names > > > include the QEMU version number" is pretty well entrenched, > > > and requiring users to remember that when they want version 4.2 > > > they need to remember some other way of writing it than "4.2" > > > seems rather unfriendly. And 550 uses of '.' is a lot. > > We can't make keyval_parse() accept "/" instead of ".", but can > > we make it accept "/" in addition to ".", and then encourage "/" ? > > > > People simply wouldnt be able to use "." as keyval separator if > > they're using typenames containing "." (or would have to escape > > the typename. > > '.' is much more common than '/', and is shared by about all programming > languages that have JSON-ish data structures natively. So using '/' seems > decidedly worse to me. Worse than what, exactly? Accepting "/" when "." is ambiguous seems decidedly better than the following alternatives: - renaming machine types to names like "q35-5-0"; or - having to escape "." in the command line. -- Eduardo