[libvirt] [PATCH v2 2/3] qemu: hotplug: Fix mlock limit handling on memory hotplug

2015-11-09 Thread Peter Krempa
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:

Re: [libvirt] [PATCH v2 2/3] qemu: hotplug: Fix mlock limit handling on memory hotplug

2015-11-09 Thread John Ferlan
On 11/09/2015 07:50 AM, Peter Krempa wrote: > 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

Re: [libvirt] [PATCH v2 2/3] qemu: hotplug: Fix mlock limit handling on memory hotplug

2015-11-09 Thread Peter Krempa
On Mon, Nov 09, 2015 at 13:11:16 -0500, John Ferlan wrote: > On 11/09/2015 07:50 AM, Peter Krempa wrote: > > 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