qmp: show QOM properties in device-list-properties
commitf4eb32b590bf58c1c67570775eb78beb09964fad
authorStefan Hajnoczi <stefanha@redhat.com>
Tue, 20 May 2014 12:29:01 +0000 (20 14:29 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Mon, 7 Jul 2014 09:10:05 +0000 (7 11:10 +0200)
treeee7bc6587f75b4804722704fd0215743bf711d0f
parentdd67c1d7e75151e2c058ccdd2162643074357442
qmp: show QOM properties in device-list-properties

Devices can use a mix of qdev and QOM properties.  Currently only the
qdev properties are displayed by device-list-properties.

This patch extends the property enumeration algorithm to also display
QOM properties (excluding the implicit "type", "realized",
"hotpluggable", and "parent_bus" properties).

When a qdev property exists, use the qdev type name to preserve
backwards compatibility.  QOM type names can be different for bool (qdev
on/off) and str (used by qdev pointers).

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
qmp.c