Skip to content
Snippets Groups Projects
Commit dfde4e6e authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3ce10901
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment