qdev: Improve diagnostics for bad property values
authorMarkus Armbruster <armbru@redhat.com>
Fri, 26 Feb 2010 14:50:50 +0000 (15:50 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 9 Mar 2010 14:47:19 +0000 (08:47 -0600)
commitc6e755c30f022566035e0949755fa840b8fb40ef
treee047c71c4770fd1bb0f440abe7bf1bdd1858dbee
parentab4b38d1f20ecc750a37aed8d5fbb068be9017e4
qdev: Improve diagnostics for bad property values

Property "vlan" reports "failed to parse" even when the value parses
just fine, but the result doesn't name an existing VLAN.

Similarly, properties "drive", "chr" and "netdev" misleadingly report
"failed to parse" when the value doesn't name an existing host device.

Change PropertyInfo method parse to return an error code, so that
qdev_prop_parse() can report the error more accurately.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/qdev-properties.c