]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Reset stored memlock limit when stopping QEMU
authorJiri Denemark <jdenemar@redhat.com>
Wed, 3 Aug 2022 11:18:59 +0000 (13:18 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 3 Aug 2022 13:53:57 +0000 (15:53 +0200)
When resetting private data after stopping QEMU process we should also
reset the original memory locking limit (both normal and pre-migration)
as they are not relevant anymore.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/qemu/qemu_domain.c

index 61a729759971126ce1f34328944d59a926483787..dd8a295f0de3d486ba9b80f8b3cfb91741cb647f 100644 (file)
@@ -1705,6 +1705,9 @@ qemuDomainObjPrivateDataClear(qemuDomainObjPrivate *priv)
         g_slist_free_full(g_steal_pointer(&priv->dbusVMStateIds), g_free);
 
     priv->dbusVMState = false;
+
+    priv->originalMemlock = 0;
+    priv->preMigrationMemlock = 0;
 }