summaryrefslogtreecommitdiffstats
path: root/backends
diff options
context:
space:
mode:
authorEduardo Habkost2014-08-08 21:03:31 +0200
committerMichael S. Tsirkin2014-09-18 20:51:24 +0200
commitb3ce84fea466f3bca2ff85d158744f00c0f429bd (patch)
treeac624099ecb8667083bda728ee89f451d923bc49 /backends
parentqdev: Rename qdev_prop_check_global() to qdev_prop_check_globals() (diff)
downloadqemu-b3ce84fea466f3bca2ff85d158744f00c0f429bd.tar.gz
qemu-b3ce84fea466f3bca2ff85d158744f00c0f429bd.tar.xz
qemu-b3ce84fea466f3bca2ff85d158744f00c0f429bd.zip
qdev: Move global validation to a single function
Currently GlobalProperty.not_used=false has multiple meanings: * It may be a property for a hotpluggable device, which may or may not have been used by a device; * It may be a machine-type-provided property, which may or may not have been used by a device. * It may be a user-provided property that was actually not used by any device. Simplify the logic by having two separate fields: 'user_provided' and 'used'. This allows the entire global property validation logic to be contained in a single function, and allows more specific error messages. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'backends')
0 files changed, 0 insertions, 0 deletions