|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH] Add a command to QMP to list the supported devices |
Date: | Mon, 24 Feb 2014 14:44:09 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
Il 24/02/2014 14:40, Andreas Färber ha scritto:
Am 24.02.2014 10:31, schrieb Paolo Bonzini:Il 24/02/2014 10:23, Or Goshen ha scritto:From: Or Goshen <address@hidden> 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. 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 "is the device supported" (as was the case for libvirt before it started using qom-list-types), then a new command is unnecessary.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |