memory: add ref/unref calls
Add ref/unref calls at the following places:
- places where memory regions are stashed by a listener and
used outside the BQL (including in Xen or KVM).
- memory_region_find callsites
- creation of aliases and containers (only the aliased/contained
region gets a reference to avoid loops)
- around calls to del_subregion/add_subregion, where the region
could disappear after the first call
Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- exec.c 3 additions, 0 deletionsexec.c
- hw/core/loader.c 1 addition, 0 deletionshw/core/loader.c
- hw/display/exynos4210_fimd.c 6 additions, 0 deletionshw/display/exynos4210_fimd.c
- hw/display/framebuffer.c 7 additions, 5 deletionshw/display/framebuffer.c
- hw/i386/kvmvapic.c 1 addition, 0 deletionshw/i386/kvmvapic.c
- hw/misc/vfio.c 2 additions, 0 deletionshw/misc/vfio.c
- hw/virtio/dataplane/hostmem.c 7 additions, 0 deletionshw/virtio/dataplane/hostmem.c
- hw/virtio/vhost.c 2 additions, 0 deletionshw/virtio/vhost.c
- hw/virtio/virtio-balloon.c 1 addition, 0 deletionshw/virtio/virtio-balloon.c
- hw/xen/xen_pt.c 4 additions, 0 deletionshw/xen/xen_pt.c
- include/hw/virtio/dataplane/hostmem.h 1 addition, 0 deletionsinclude/hw/virtio/dataplane/hostmem.h
- kvm-all.c 2 additions, 0 deletionskvm-all.c
- memory.c 21 additions, 0 deletionsmemory.c
- target-arm/kvm.c 2 additions, 0 deletionstarget-arm/kvm.c
- target-sparc/mmu_helper.c 1 addition, 0 deletionstarget-sparc/mmu_helper.c
- xen-all.c 2 additions, 0 deletionsxen-all.c
Loading
Please register or sign in to comment