Received: from [140.186.70.92] (port=40779 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OKXzV-000662-69 for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:35:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OKXsS-0005Kw-TJ for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:28:12 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56713) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OKXsS-0005KU-Kz for qemu-devel@nongnu.org; Fri, 04 Jun 2010 10:28:04 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH] qdev: Reject duplicate and anti-social device IDs References: <4C038882.3080007@redhat.com> <201006030751.37918.paul@codesourcery.com> Date: Fri, 04 Jun 2010 16:27:47 +0200 In-Reply-To: <201006030751.37918.paul@codesourcery.com> (Paul Brook's message of "Thu, 3 Jun 2010 07:51:35 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Anthony Liguori , Juan Quintela , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Blue Swirl , Jan Kiszka , Gerd Hoffmann , Avi Kivity Paul Brook writes: >> Also require IDs to start with a letter to provide for possible future >> extensions. > > I'd go further than that, and require that user specified IDs match > [A-Za-z][A-Za-z0-9_-]* I talked with Dan (cc'ed) to make sure we don't trample on existing libvirt usage without need. What about [A-Za-z][A-Za-z0-9_-:.]* i.e. your regexp plus ':' and '.' in the second bracket?