From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gHV6f-0007YB-IC for qemu-devel@nongnu.org; Tue, 30 Oct 2018 10:34:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gHV6c-0000ik-20 for qemu-devel@nongnu.org; Tue, 30 Oct 2018 10:34:57 -0400 Date: Tue, 30 Oct 2018 11:34:44 -0300 From: Eduardo Habkost Message-ID: <20181030143444.GU3902@habkost.net> References: <20181030111348.14713-1-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181030111348.14713-1-kraxel@redhat.com> Subject: Re: [Qemu-devel] [PATCH 0/4] Introducing QemuSupportState List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org, Paolo Bonzini , Alexander Graf , Marcel Apfelbaum , "Michael S. Tsirkin" , David Gibson , Eric Blake , qemu-ppc@nongnu.org, Richard Henderson , Markus Armbruster , =?iso-8859-1?Q?Herv=E9?= Poussineau On Tue, Oct 30, 2018 at 12:13:44PM +0100, Gerd Hoffmann wrote: > Trying to fill the need to be more finegrained on support status ... > > Any hints/patches how to hook that into introspection so we get > machine type / device support status to libvirt are welcome. We have qom-list-types, but it returns info for all QOM types, not just device types. I see two possible approaches for this: * Decide that every QOM type (devices, backend objects, machine-types) will have this flag, and just add it to qom-list-types. * Add device-list-types or query-device-type commands, specific for TYPE_DEVICE. I'm not sure which one is better. The latter is more conservative and safer, but will require duplicating the same work for machine-types and backend objects later. -- Eduardo