]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: add getter for owner
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 May 2013 04:59:09 +0000 (06:59 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Jul 2013 15:42:45 +0000 (17:42 +0200)
commit803c0816a7d3ab35460991ba5b7d1fccc070332b
tree11dbf5a0e9f6be80dba44b8828fb2601451b7862
parentb7e95164d1a9969aa591b8a72e05b94d08c49738
memory: add getter for owner

Whenever memory regions are accessed outside the BQL, they need to be
preserved against hot-unplug.  MemoryRegions actually do not have their
own reference count; they piggyback on a QOM object, their "owner".
The owner is set at creation time, and there is a function to retrieve
the owner.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/exec/memory.h
memory.c