[libvirt] [PATCH 1/2] qemu: Extract logic to determine the mlock limit size for VFIO

2015-11-06 Thread Peter Krempa
New function qemuDomainGetMlockLimitBytes will now handle the calculation so that it unifies the logic to one place and allows later reuse. --- src/qemu/qemu_command.c | 18 ++ src/qemu/qemu_domain.c | 17 + src/qemu/qemu_domain.h | 2 ++ src/qemu/qemu_hotplug.c

Re: [libvirt] [PATCH 1/2] qemu: Extract logic to determine the mlock limit size for VFIO

2015-11-06 Thread John Ferlan
On 11/06/2015 10:47 AM, Peter Krempa wrote: > New function qemuDomainGetMlockLimitBytes will now handle the > calculation so that it unifies the logic to one place and allows later > reuse. > --- > src/qemu/qemu_command.c | 18 ++ > src/qemu/qemu_domain.c | 17 +