c7bcc85d66
qdev: Remove hex8/32/64 property types
...
Replace them with uint8/32/64.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 21:12:04 +01:00
515f23462b
qdev: Remove most legacy printers
...
Their functionality is either aesthetic only (e.g. on/off vs. true/false)
or obtained by the "human mode" of StringOutputVisitor.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 21:12:03 +01:00
98a6528461
qdev: Inline qdev_prop_parse()
...
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 21:12:02 +01:00
03ff777048
qdev: Legacy properties are now read-only
...
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 21:12:02 +01:00
9e4d9620c4
qdev: Remove legacy parsers for hex8/32/64
...
The hexNN property types have not been accepting values not prefixed
by "0x" since QEMU 1.2. Parse those values as decimals now.
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 21:12:02 +01:00
7d9268647c
qdev: Sizes are now parsed by StringInputVisitor
...
Reviewed-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Eric Blake <eblake@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2014-02-14 21:12:02 +01:00
5433a0a89e
hw: Remove assert_no_error usages
...
Replace assert_no_error() usages with the error_abort system.
&error_abort is passed into API calls to signal to the Error sub-system
that any errors are fatal. Removes need for caller assertions.
Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com >
Reviewed-by: Markus Armbruster <armbru@redhat.com >
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com >
2014-01-06 15:02:30 -05:00
1197cbb9ed
qdev: Use clz in print_size
...
We can compute a floor log2 value with clz rather than a division loop.
Signed-off-by: Richard Henderson <rth@twiddle.net >
Message-id: 1375208443-17288-3-git-send-email-rth@twiddle.net
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-31 07:54:21 -05:00
e76c756fd3
qdev: Fix 32-bit compilation in print_size
...
Signed-off-by: Richard Henderson <rth@twiddle.net >
Message-id: 1375208443-17288-2-git-send-email-rth@twiddle.net
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-31 07:54:21 -05:00
e8cd45c78f
qdev: Add SIZE type to qdev properties
...
This patch adds a 'SIZE' type property to qdev.
Signed-off-by: Ian Molton <ian.molton@collabora.co.uk >
Signed-off-by: Vasilis Liaskovitis <vasilis.liaskovitis@profitbricks.com >
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
Reviewed-by: Michael S. Tsirkin <mst@redhat.com >
Reviewed-by: Andreas Färber <afaerber@suse.de >
Message-id: 1375109277-25561-7-git-send-email-imammedo@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-29 19:33:33 -05:00
949fc82314
hw: import bitmap operations in qdev-core header
...
Made small tweaks in code to prevent compilation issues
when importing qemu/bitmap.h in qdev-core
Signed-off-by: Marcel Apfelbaum <marcel.a@redhat.com >
Message-id: 1375107465-25767-2-git-send-email-marcel.a@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-07-29 10:37:09 -05:00
868d378bb0
qdev: Introduce qdev_prop_set_globals_for_type()
...
Reuse it in qdev_prop_set_globals().
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com >
[AF: Renamed from qdev_prop_set_custom_globals()]
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-05-06 19:50:52 +02:00
b1fe9bcbce
qdev: Let qdev_prop_parse() pass through Error
...
Move error reporting to callers.
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com >
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-05-06 19:40:44 +02:00
72cc513775
qdev: Add qdev property for bool type
...
Signed-off-by: Igor Mammedov <imammedo@redhat.com >
[AF: Use new qdev_prop_set_after_realize()]
Signed-off-by: Andreas Färber <afaerber@suse.de >
2013-04-16 01:19:46 +02:00
dccfcd0e5f
sysemu: avoid proliferation of include/ subdirectories
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-15 18:19:25 +02:00
49ab747f66
hw: move target-independent files to subdirectories
...
This patch tackles all files that are compiled once, moving
them to subdirectories of hw/.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:12 +02:00