[PATCH 0/6] Fixes for memory locking limit

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

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]