summary refs log tree commit diff stats
path: root/docs/specs
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2020-01-10 19:30:34 +0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-24 20:59:16 +0100
commit77b06bba62034a87cc61a9c8de1309ae3e527d97 (patch)
tree31644878066667339e6adb57fe026b74cdb78a5a /docs/specs
parentc68fc9359ba08594def82050e093a039376caddc (diff)
downloadfocaccia-qemu-77b06bba62034a87cc61a9c8de1309ae3e527d97.tar.gz
focaccia-qemu-77b06bba62034a87cc61a9c8de1309ae3e527d97.zip
qdev: register properties as class properties
Use class properties facilities to add properties to the class during
device_class_set_props().

qdev_property_add_static() must be adapted as PropertyInfo now
operates with classes (and not instances), so we must
set_default_value() on the ObjectProperty, before calling its init()
method on the object instance.

Also, PropertyInfo.create() is now exclusively used for class
properties. Fortunately, qdev_property_add_static() is only used in
target/arm/cpu.c so far, which doesn't use "link" properties (that
require create()).

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200110153039.1379601-22-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'docs/specs')
0 files changed, 0 insertions, 0 deletions