]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: hotplug: Fix mlock limit handling on memory hotplug
authorPeter Krempa <pkrempa@redhat.com>
Fri, 6 Nov 2015 15:39:31 +0000 (16:39 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 10 Nov 2015 08:30:21 +0000 (09:30 +0100)
commitec90b34acf7cf7d06a63908c39e21b63382a1967
tree4ac53b03af107de8212d586495df9779aea684aa
parentfbc58cfcaeffdd4a350cf6abd67da6006f01b148
qemu: hotplug: Fix mlock limit handling on memory hotplug

If mlock is required either due to use of VFIO hostdevs or due to the
fact that it's enabled it needs to be tweaked prior to adding new memory
or after removing a module. Add a helper to determine when it's
necessary and reuse it both on hotplug and hotunplug.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1273491
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_hotplug.c