[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 0/6] Fixes for memory locking limit



The code dealing with RLIMIT_MEMLOCK contained a few
assumptions that hold for x86 but don't necessarily work
as well for other platforms, eg. that qemu will need to
lock memory only when VFIO passthrough is involved.

This series removes such assumptions by removing ad-hoc
code and making sure that the function containing the
correct logic is called instead; it also implements the
platform-specific calculations needed to calculate the
correct RLIMIT_MEMLOCK value for ppc64 guests.

Patches 1-4 are architecture-agnostic, patches 5-6 are
specific to ppc64.

Cheers.


Andrea Bolognani (6):
  process: Log when limiting the amount of locked memory
  qemu: Use qemuDomainRequiresMlock() in qemuBuildCommandLine()
  qemu: Use qemuDomainRequiresMlock() when attaching PCI hostdev
  qemu: Reduce memlock limit after detaching hostdev
  qemu: Always set locked memory limit for ppc64 domains
  qemu: Add ppc64-specific math to qemuDomainGetMlockLimitBytes()

 src/qemu/qemu_command.c |  9 ++---
 src/qemu/qemu_domain.c  | 89 +++++++++++++++++++++++++++++++++++++++++++++++--
 src/qemu/qemu_hotplug.c | 29 ++++++++++++----
 src/util/virprocess.c   |  4 +++
 4 files changed, 116 insertions(+), 15 deletions(-)

-- 
2.5.0


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]