Statistics
| Branch: | Revision:

root / qom @ db895a1e

Name Size
Makefile.objs 72 Bytes
container.c 1.1 kB
cpu.c 5 kB
object.c 32.1 kB
qom-qobject.c 1.2 kB

Latest revisions

# Date Author Comment
95916abc 05/22/2013 03:40 pm Peter Crosthwaite

qom/object: Don't poll cast cache for NULL objects

object_dynamic_cast_assert used to be tolerant of NULL objects and not
assert. It's clear from the implementation that this is the expected
behavior.

The preceding check of the cast cache dereferences obj however causing...

03587328 05/13/2013 11:27 pm Anthony Liguori

qom: aggressively optimize qom casting

This patch adds a small typename cache to ObjectClass. This allows
caching positive casts within each ObjectClass. Benchmarking a
PPC workload provided by Aurelien, this patch eliminates every
single g_hash_table_lookup() happening during the benchmark (which...

bf0fda34 05/13/2013 05:52 pm Paolo Bonzini

qom: allow casting of a NULL class

This mimics what we do in object_dynamic_cast_assert.

Signed-off-by: Paolo Bonzini <>
Message-id:
Signed-off-by: Anthony Liguori <>

793c96b5 05/13/2013 05:52 pm Paolo Bonzini

qom: add a fast path to object_class_dynamic_cast

For leaf classes, in many cases the callbacks will simply downcast
the object back to the original class. Add this fast path to
object_class_dynamic_cast, object_dynamic_cast will inherit it.

Signed-off-by: Paolo Bonzini <>...

be17f18b 05/13/2013 05:52 pm Paolo Bonzini

qom: pass file/line/function to asserting casts

Signed-off-by: Paolo Bonzini <>
Message-id:
Signed-off-by: Anthony Liguori <>

fa131d94 05/13/2013 05:52 pm Paolo Bonzini

qom: trace asserting casts

This provides a way to detect the cast that leads to a (reproducible)
crash even when QOM cast debugging is disabled.

Signed-off-by: Paolo Bonzini <>
Message-id: ...

3556c233 05/13/2013 05:52 pm Paolo Bonzini

qom: allow turning cast debugging off

Cast debugging can have a substantial cost (20% or more). Instead of adding
special-cased "fast casts" in the hot paths, we can just disable it in
releases. The tracing facilities we just added make it easier to analyze...

c72bf468 05/01/2013 02:04 pm Jens Freimann

cpu: Move cpu_write_elfXX_note() functions to CPUState

Convert cpu_write_elfXX_note() functions to CPUClass methods and pass
CPUState as argument. Update target-i386 accordingly.

Signed-off-by: Jens Freimann <>
[AF: Retain stubs as CPUClass' default method implementation; style changes]...

997395d3 05/01/2013 02:04 pm Igor Mammedov

cpu: Introduce get_arch_id() method and override it for X86CPU

get_arch_id() adds possibility for generic code to get a guest-visible
CPU ID without accessing CPUArchState.
If derived classes don't override it, it will return cpu_index.

Override it on target-i386 in X86CPU to return the APIC ID....

69e5ff06 05/01/2013 02:04 pm Igor Mammedov

cpu: Add helper cpu_exists(), to check if CPU with specified id exists

Signed-off-by: Igor Mammedov <>
Signed-off-by: Andreas Färber <>

View revisions

Also available in: Atom