From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=32914 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OJRZn-0003Jg-ME for qemu-devel@nongnu.org; Tue, 01 Jun 2010 09:32:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OJRR7-0000Db-LV for qemu-devel@nongnu.org; Tue, 01 Jun 2010 09:23:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:7111) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OJRR7-0000DV-Dk for qemu-devel@nongnu.org; Tue, 01 Jun 2010 09:23:17 -0400 Date: Tue, 1 Jun 2010 10:23:09 -0300 From: Luiz Capitulino Message-ID: <20100601102309.58fef3ba@redhat.com> In-Reply-To: <4C0508FF.2050000@siemens.com> References: <3715da16813f7cdcb7ec023167a84a94e8a37089.1274612367.git.jan.kiszka@web.de> <4C021ED5.1080703@redhat.com> <4C038882.3080007@redhat.com> <20100601100434.380c6ab3@redhat.com> <4C05068E.4010102@siemens.com> <20100601101320.36476ce2@redhat.com> <4C0508FF.2050000@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] qdev: Reject duplicate and anti-social device IDs List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , Juan Quintela , "qemu-devel@nongnu.org" , Markus Armbruster , Blue Swirl , Jan Kiszka , Gerd Hoffmann , Kivity , Avi@gnu.org On Tue, 01 Jun 2010 15:19:59 +0200 Jan Kiszka wrote: > Luiz Capitulino wrote: > > On Tue, 01 Jun 2010 15:09:34 +0200 > > Jan Kiszka wrote: > > > >> Luiz Capitulino wrote: > >>> Two bugs that might not be related to this thread: > >>> > >>> * "id" member is not mandatory for the device_add command: > >>> > >>> { "execute": "device_add", "arguments": { "driver": "e1000" } } > >>> {"return": {}} > >> Once we enable qtree paths for device_del, this is no longer an issue, > >> devices will remain addressable. > > > > Main point is whether "id" is required or not, I think it should be. > > And I think it might be recommended but should become mandatory > (specifically not for HMP). Maybe you meant 'should not'? Anyway, if we keep it optional for device_add we should also change the others _add commands to have the same behavior.