[libvirt PATCH] qemu: Do not try to set memlock on inactive domain
Pavel Hrdina
phrdina at redhat.com
Wed Aug 3 12:40:35 UTC 2022
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 set any limit. Doing so can even be harmful as we may end
> up setting the limit for the daemon itself as the PID is 0.
>
> Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
> ---
> src/qemu/qemu_domain.c | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Pavel Hrdina <phrdina at redhat.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20220803/8beec78d/attachment.sig>
More information about the libvir-list
mailing list