Received: from eggs.gnu.org ([2001:4830:134:3::10]:54025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z21PV-0002dO-HQ for qemu-devel@nongnu.org; Mon, 08 Jun 2015 14:04:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z21PS-0001Ro-CT for qemu-devel@nongnu.org; Mon, 08 Jun 2015 14:04:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:39112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z21PS-0001Rk-7I for qemu-devel@nongnu.org; Mon, 08 Jun 2015 14:04:30 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id E29FF19F24F for ; Mon, 8 Jun 2015 18:04:29 +0000 (UTC) From: Markus Armbruster References: <1431352157-40283-1-git-send-email-pbonzini@redhat.com> <1431352157-40283-11-git-send-email-pbonzini@redhat.com> <87mw107coh.fsf@blackfin.pond.sub.org> <555B6777.7050006@redhat.com> Date: Mon, 08 Jun 2015 20:04:27 +0200 In-Reply-To: <555B6777.7050006@redhat.com> (Paolo Bonzini's message of "Tue, 19 May 2015 18:40:23 +0200") Message-ID: <87oakq84b8.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 10/31] vl: allow full-blown QemuOpts syntax for -global List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: kraxel@redhat.com, lersek@redhat.com, qemu-devel@nongnu.org, mst@redhat.com Paolo Bonzini writes: > On 19/05/2015 18:30, Markus Armbruster wrote: >> Restrictions on driver and property names in the shorthand syntax >> driver.property=value before the patch: >> >> * Both are at most 63 characters long, no whitespace >> >> * Driver name cannot contain '.' >> >> * Property name cannot contain '=' >> >> After the patch, we additionally have: >> >> * Driver name cannot contain '='. >> >> Okay as long as no such driver name exists. Have you checked? > > Good catch! I now have. > > I've grepped for > > - \\..*\".*=.*\", > > - TYPE_.*\".*=.*\" > > with no hits. > >> Please spell out the new restriction in the commit message. > > Will do. I'm afraid you didn't. >>> @@ -186,6 +188,9 @@ qemu-system-i386 -global >>> ide-drive.physical_block_size=4096 -drive file=file,if= >>> In particular, you can use this to set driver properties for >>> devices which are >>> created automatically by the machine model. To create a device which is not >>> created automatically and set properties on it, use -@option{device}. >>> + >>> +The two syntaxes are equivalent. The longer one works for drivers >>> whose name >>> +contains a dot. >>> ETEXI >>> >>> DEF("boot", HAS_ARG, QEMU_OPTION_boot, >> >> I'd explain this as follows: >> >> -global @var{driver}.@var{prop}=@var{value} is shorthand for -global >> driver=@var{driver},property=@var{prop},value=@var{value}. The >> longhand syntax works even when @var{driver} contains a dot. > > Will do. I'm afraid you didn't. I'll post a follow-up patch.