mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
qemu: Reset stored memlock limit when stopping QEMU
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>
This commit is contained in:
parent
49065e6a93
commit
f931079e89
@ -1705,6 +1705,9 @@ qemuDomainObjPrivateDataClear(qemuDomainObjPrivate *priv)
|
|||||||
g_slist_free_full(g_steal_pointer(&priv->dbusVMStateIds), g_free);
|
g_slist_free_full(g_steal_pointer(&priv->dbusVMStateIds), g_free);
|
||||||
|
|
||||||
priv->dbusVMState = false;
|
priv->dbusVMState = false;
|
||||||
|
|
||||||
|
priv->originalMemlock = 0;
|
||||||
|
priv->preMigrationMemlock = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user