9262685b | 03-Mar-2014 |
Andreas Färber <afaerber@suse.de> |
cpu: Factor out cpu_generic_init()
All targets using it gain the ability to set -cpu name,key=value,... options via the default TYPE_CPU CPUClass::parse_features() implementation.
Signed-off-by: An
cpu: Factor out cpu_generic_init()
All targets using it gain the ability to set -cpu name,key=value,... options via the default TYPE_CPU CPUClass::parse_features() implementation.
Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|
b061dc41 | 03-Dec-2013 |
Paolo Bonzini <pbonzini@redhat.com> |
qom: Do not register interface "types" in the type table and fix names
There should be no need to look up nor enumerate the interface "types", whose "classes" are really just vtables. Just create t
qom: Do not register interface "types" in the type table and fix names
There should be no need to look up nor enumerate the interface "types", whose "classes" are really just vtables. Just create the types and add them to the interface list of the parent type.
Interfaces not registering their type anymore means that accessing superclass::interface by type name will fail when initializing subclass::interface. Thus, we need to pre-initialize the subclass's parent_type field before calling type_initialize. Apart from this, the interface "types" should never be used and thus it is harmless to leave them out of the hashtable.
Further, the interface types had a bug with interfaces that are inherited from a superclass: The implementation type name was wrong (for example it was subclass::superclass::interface rather than just subclass::interface). This patch fixes this as well.
Reported-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|
e732ea63 | 22-Sep-2013 |
Michael S. Tsirkin <mst@redhat.com> |
qom: add pointer to int property helpers
Make it easy to add read-only helpers for simple integer properties in memory.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Gerd Hoffmann <
qom: add pointer to int property helpers
Make it easy to add read-only helpers for simple integer properties in memory.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
e82df248 | 22-Sep-2013 |
Michael S. Tsirkin <mst@redhat.com> |
qom: cleanup struct Error references
now that a typedef for struct Error is available, use it in qom/object.h to match coding style rules.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-
qom: cleanup struct Error references
now that a typedef for struct Error is available, use it in qom/object.h to match coding style rules.
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Tested-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Tested-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
show more ...
|
38fcbd3f | 07-Jul-2013 |
Andreas Färber <afaerber@suse.de> |
cpu: Replace qemu_for_each_cpu()
It was introduced to loop over CPUs from target-independent code, but since commit 182735efaf956ccab50b6d74a4fed163e0f35660 target-independent CPUState is used.
A l
cpu: Replace qemu_for_each_cpu()
It was introduced to loop over CPUs from target-independent code, but since commit 182735efaf956ccab50b6d74a4fed163e0f35660 target-independent CPUState is used.
A loop can be considered more efficient than function calls in a loop, and CPU_FOREACH() hides implementation details just as well, so use that instead.
Suggested-by: Markus Armbruster <armbru@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|
5b9237f6 | 30-Aug-2013 |
Andreas Färber <afaerber@suse.de> |
qom: Assert instance size in object_initialize_with_type()
This catches objects initializing beyond allocated memory, e.g., when subtypes get extended with instance state of their own.
Suggested-by
qom: Assert instance size in object_initialize_with_type()
This catches objects initializing beyond allocated memory, e.g., when subtypes get extended with instance state of their own.
Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
show more ...
|