]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: MemoryRegion: QOMify
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Fri, 6 Jun 2014 06:15:52 +0000 (23:15 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 1 Jul 2014 08:20:41 +0000 (10:20 +0200)
commitb4fefef9d52003b6d09866501275a9a57995c6b0
tree6d9c67e1e535afd09aa7d37609f4871d0ce3ec8b
parentb5c2c3d0c81ea97ac8443113b9a7a0c0ce25368e
memory: MemoryRegion: QOMify

QOMify memory regions as an Object. The former init() and destroy()
routines become instance_init() and instance_finalize() resp.

memory_region_init() is re-implemented to be:
object_initialize() + set fields

memory_region_destroy() is re-implemented to call unparent().

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
[Add newly-created MR as child, unparent on destruction. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
exec.c
include/exec/memory.h
memory.c