Eduardo Habkost b3ce84fea4 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>
2014-09-18 21:51:24 +03:00
..
2013-10-28 17:34:42 +01:00
2014-05-28 14:47:35 +01:00
2014-05-05 20:58:33 +02:00
2012-03-12 15:14:07 +01:00
2014-02-14 16:22:33 +01:00
2014-05-05 20:58:33 +02:00
2014-03-31 22:36:17 +02:00
2014-05-05 20:58:33 +02:00
2014-05-05 20:58:33 +02:00
2014-02-14 21:07:13 +01:00
2014-02-14 20:50:19 +01:00
2014-03-31 22:35:03 +02:00
2014-02-14 16:22:33 +01:00
2014-02-14 16:22:33 +01:00
2013-02-01 08:32:20 +01:00
2014-02-14 21:02:27 +01:00
2014-08-29 12:53:47 +02:00
2014-08-29 12:53:47 +02:00
2014-08-29 12:53:47 +02:00
2014-03-31 22:35:50 +02:00
2014-02-14 21:01:03 +01:00
2014-03-13 01:21:56 +01:00
2014-02-14 16:22:33 +01:00
2014-07-18 14:57:35 +02:00