globals: Allow global properties to be optional
commitd7741743f4f3d2683d1bb6938f88dc0167c21afa
authorEduardo Habkost <ehabkost@redhat.com>
Thu, 10 Jan 2019 18:04:57 +0000 (10 16:04 -0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Jan 2019 02:10:57 +0000 (17 21:10 -0500)
tree26d7b5126284169d4cd3a4b9d467927af47cb6ef
parentecd3b89b0549d6b82bed5e25a0a2fb153d5df4d4
globals: Allow global properties to be optional

Making some global properties optional will let us simplify
compat code when a given property works on most (but not all)
subclasses of a given type.

Device types will be able to opt out from optional compat
properties by simply not registering those properties.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
include/hw/qdev-core.h
qom/object.c