]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: Add refcnt for args->vm during migration
authorJohn Ferlan <jferlan@redhat.com>
Mon, 23 Apr 2018 15:53:16 +0000 (11:53 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Thu, 3 May 2018 23:09:03 +0000 (19:09 -0400)
commit8369ddfd1b14eed645b1c7facd297886bebf3fe1
treec7d8c559021a924adf2d8625867abf04e1c56968
parent2d2ed7b6f60effc25c89d689476d5f5772e0e086
libxl: Add refcnt for args->vm during migration

When adding the @vm to the @args for usage during a thread or
callback, let's add the reference to it at the time of adding to
ensure nothing else deletes it. The corresponding Unref is then
added to the Dispose function.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/libxl/libxl_migration.c