Re: [libvirt PATCH] qemu: Do not try to set memlock on inactive domain

2022-08-03 Thread Pavel Hrdina
On Wed, Aug 03, 2022 at 01:52:41PM +0200, Jiri Denemark wrote: > When we call qemuDomainSetMaxMemLock to reset memory locking limit back > to its original value the domain can already be stopped (for example > after the domain shuts down during migration) in which case it does not > make sense to

[libvirt PATCH] qemu: Do not try to set memlock on inactive domain

2022-08-03 Thread Jiri Denemark
When we call qemuDomainSetMaxMemLock to reset memory locking limit back to its original value the domain can already be stopped (for example after the domain shuts down during migration) in which case it does not make sense to set any limit. Doing so can even be harmful as we may end up setting