Statistics
| Branch: | Revision:

root / include / qom @ 0ab4c94c

Name Size
cpu.h 15.2 kB
object.h 38.8 kB
qom-qobject.h 1.1 kB

Latest revisions

# Date Author Comment
0ab4c94c 12/24/2013 06:27 pm Peter Crosthwaite

qom: Split out object and class caches

The object-cast and class-cast caches cannot be shared because class
caching is conditional on the target type not being an interface and
object caching is unconditional. Leads to a bug when a class cast
to an interface follows an object cast to the same interface type:...

a25ebcac 11/05/2013 07:06 pm Michael S. Tsirkin

qom: Fix pointer to int property helpers' documentation

Relocate to alongside the other object_property_add_* helpers while at it.

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

e732ea63 10/14/2013 05:46 pm Michael S. Tsirkin

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 <>
Reviewed-by: Gerd Hoffmann <>
Tested-by: Gerd Hoffmann <>...

e82df248 10/14/2013 05:45 pm Michael S. Tsirkin

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 <>
Reviewed-by: Gerd Hoffmann <>
Tested-by: Gerd Hoffmann <>...

008e0566 10/14/2013 05:11 pm Igor Mammedov

cleanup object.h: include error.h directly

qapi/error.h is simple enough to be included in qom/object.h
direcly and prepares qom/object.h to use Error typedef.

Signed-off-by: Igor Mammedov <>
Signed-off-by: Michael S. Tsirkin <>

aaa6a401 09/03/2013 08:33 pm Anthony Liguori

Merge remote-tracking branch 'afaerber/tags/qom-cpu-for-anthony' into staging

QOM CPUState refactorings / X86CPU

  • Conversion of global CPU list to QTAILQ - preparing for CPU hot-unplug
  • Document X86CPU magic numbers for CPUID cache info
  1. gpg: Signature made Tue 03 Sep 2013 10:59:22 AM CDT using RSA key ID 3E7E013F...
bdc44640 09/03/2013 01:25 pm Andreas Färber

cpu: Use QTAILQ for CPU list

Introduce CPU_FOREACH(), CPU_FOREACH_SAFE() and CPU_NEXT() shorthand
macros.

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

38fcbd3f 09/03/2013 01:25 pm Andreas Färber

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,...

213f0c4f 08/30/2013 10:15 pm Andreas Färber

qom: Pass available size to object_initialize()

To be passed on to object_initialize_with_type().

Acked-by: Cornelia Huck <> (virtio-ccw)
Signed-off-by: Andreas Färber <>

5b9237f6 08/30/2013 10:15 pm Andreas Färber

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 <>
Signed-off-by: Andreas Färber <>

View revisions

Also available in: Atom