qemu-patch-raspberry4/include
Andreas Färber fe6c211781 qdev: Fix QOM unrealize behavior
Since commit 249d41720b (qdev: Prepare
"realized" property) setting realized = true would register the device's
VMStateDescription, but realized = false would not unregister it. Fix that.

Moving the code from unparenting also revealed that we were calling
DeviceClass::init through DeviceClass::realize as interim solution but
DeviceClass::exit still at unparenting time with a realized check.
Make this symmetrical by implementing DeviceClass::unrealize to call it,
while we're setting realized = false in the unparenting path.
The only other unrealize user is mac_nvram, which can safely override it.

Thus, mark DeviceClass::exit as obsolete, new devices should implement
DeviceClass::unrealize instead.

Cc: qemu-stable@nongnu.org
Signed-off-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Message-id: 1366043650-9719-1-git-send-email-afaerber@suse.de
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2013-04-15 17:05:34 -05:00
..
backends QOM-ify the TPM support 2013-04-02 08:15:18 -05:00
block block: Introduce bdrv_pwritev() for qcow2_save_vmstate 2013-04-15 08:26:18 +02:00
bt softmmu: move remaining include files to include/ subdirectories 2012-12-19 08:32:46 +01:00
char qemu-char: Add qemu_chr_fe_claim / _release helper functions 2013-04-04 19:21:25 -05:00
disas Add moxie disassembler 2013-03-23 14:25:41 +00:00
exec hw: move headers to include/ 2013-04-08 18:13:10 +02:00
fpu softfloat: Implement uint64_to_float128 2013-01-05 10:12:50 +00:00
hw qdev: Fix QOM unrealize behavior 2013-04-15 17:05:34 -05:00
migration savevm: Implement block_writev_buffer() 2013-04-15 08:26:18 +02:00
monitor qdev: DEVICE_DELETED event 2013-03-17 13:27:27 +02:00
net hw: move headers to include/ 2013-04-08 18:13:10 +02:00
qapi qstring: add qstring_get_length() 2013-04-05 08:42:29 -04:00
qemu aes: make Td[0-5] and Te[0-5] tables non static 2013-04-13 13:51:57 +02:00
qom Fix typos and misspellings 2013-03-22 13:25:07 +01:00
sysemu hw: move headers to include/ 2013-04-08 18:13:10 +02:00
tpm QOM-ify the TPM support 2013-04-02 08:15:18 -05:00
ui console: remove ds_get_* helper functions 2013-03-18 10:21:59 +01:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
libfdt_env.h fdt: Use bswapN instead of bswap_N 2013-01-12 12:22:58 +00:00
qemu-common.h unicode: New mod_utf8_codepoint() 2013-04-13 19:39:59 +00:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00