Basic qdev infrastructure.
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines · Anthony Liguori
From: Paul Brook <[email protected]>
Signed-off-by Paul Brook <[email protected]>+struct DeviceProperty {
+ const char *name;
+ union {
+ int i;
qdev_set_prop_int uses also 'int' but qdev_get_prop_int returns uint64_t.
Quoted 5 lines
+struct DeviceType {
+ const char *name; + qdev_initfn init; + void *opaque; + int size;
size_t size?
Quoted 2 lines
+DeviceType *qdev_register(const char *name, int size,
qdev_initfninit,
+ void *opaque)
size_t size?
Quoted 3 lines
+void
qdev_set_prop_int(DeviceState *dev, const char *name, int value)+uint64_t
qdev_get_prop_int(DeviceState *dev, const char *name, uint64_t def)
Quoted 4 lines
Quoted 2 lines
+struct DeviceProperty {
+ int i;
qdev_set_prop_intuses also 'int' butqdev_get_prop_intreturnsuint64_t.
Fixed.
Quoted 4 lines
Quoted 2 lines
+struct DeviceType {
+ int size;
size_tsize?
Technically yes. However if we ever get devices with >2G of internal state we have much bigger problems :-)
Paul