From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49079) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHvpV-0000KI-BG for qemu-devel@nongnu.org; Mon, 24 Feb 2014 08:44:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHvpQ-0002kU-LZ for qemu-devel@nongnu.org; Mon, 24 Feb 2014 08:44:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:3917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHvpQ-0002j9-CD for qemu-devel@nongnu.org; Mon, 24 Feb 2014 08:44:16 -0500 Message-ID: <530B4CA9.8030508@redhat.com> Date: Mon, 24 Feb 2014 14:44:09 +0100 From: Paolo Bonzini MIME-Version: 1.0 References: <1393233796-1328-1-git-send-email-orx.goshen@intel.com> <530B115F.7080407@redhat.com> <530B4BD4.7030808@suse.de> In-Reply-To: <530B4BD4.7030808@suse.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] Add a command to QMP to list the supported devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?ISO-8859-1?Q?Andreas_F=E4rber?= Cc: Or Goshen , qemu-devel@nongnu.org, Or Goshen , Luiz Capitulino Il 24/02/2014 14:40, Andreas F=E4rber ha scritto: > Am 24.02.2014 10:31, schrieb Paolo Bonzini: >> Il 24/02/2014 10:23, Or Goshen ha scritto: >>> From: Or Goshen >>> >>> Was done on behalf of Intel Corp. >> >> Hi Or, >> >> you can use qom-list-types for this purpose. > > That can return a list of types, but there is no way to access the > DeviceClass-specific bus, alias, desc values, is there? The bus value can be retrieved indirectly from the class hierarchy.=20 Aliases are deprecated. Desc could be moved to the object class and added to qom-list-types. > It sounds to me as if they are trying to recreate the -device ? output > in machine-readable form. Indeed. The question is why they need "-device ?". If it is just for=20 "is the device supported" (as was the case for libvirt before it started=20 using qom-list-types), then a new command is unnecessary. Paolo