qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] qom: fix registration of QOM interfaces
@ 2013-12-03 15:41 Paolo Bonzini
  2013-12-03 15:41 ` [Qemu-devel] [PATCH 1/2] qom: do not register interface "types" in the type table Paolo Bonzini
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Paolo Bonzini @ 2013-12-03 15:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: peter.crosthwaite, hpoussin, afaerber

object_class_foreach can initialize new types, and also register new types
corresponding to the implementations of interfaces. Those will change the
type internal hashtable which is currently enumerated, and GHashTable does
not permit this.

Fix this by not registering those internal types in the hash table, and
assert that we do not reenter GHashTable incorrectly during iteration.

Hervé Poussineau (1):
  qom: detect bad reentrance during object_class_foreach

Paolo Bonzini (1):
  qom: do not register interface "types" in the type table

 qom/object.c | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

-- 
1.8.4.2

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-12-24 11:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-03 15:41 [Qemu-devel] [PATCH 0/2] qom: fix registration of QOM interfaces Paolo Bonzini
2013-12-03 15:41 ` [Qemu-devel] [PATCH 1/2] qom: do not register interface "types" in the type table Paolo Bonzini
2013-12-03 15:42 ` [Qemu-devel] [PATCH 2/2] qom: detect bad reentrance during object_class_foreach Paolo Bonzini
2013-12-04  5:51   ` Peter Crosthwaite
2013-12-15 21:23     ` Andreas Färber
2013-12-19 11:38       ` Alexey Kardashevskiy
2013-12-20 11:29         ` Andreas Färber
2013-12-20 11:43           ` Alexey Kardashevskiy
2013-12-24  6:49             ` Alexey Kardashevskiy
2013-12-24 11:20               ` Andreas Färber
2013-12-15 21:25 ` [Qemu-devel] [PATCH 0/2] qom: fix registration of QOM interfaces Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).