[PATCH 0/3] qemu: Make setting memory limits consistent

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

 



We need to set memory limits in several cases:
- when setting hard_limit in memory cgroup
- when starting a domain with a VFIO PCI device attached
- when hotplugging a VFIO PCI device
- when memoryBacking/locked is used

This series makes use of a shared code to compute the limits in all of
those cases.

Jiri Denemark (3):
  qemu: Move memory limit computation to a reusable function
  qemu: Use qemuDomainMemoryLimit when computing memory for VFIO
  qemu: Set RLIMIT_MEMLOCK when memoryBacking/locked is used

 src/qemu/qemu_cgroup.c  | 21 ++-------------------
 src/qemu/qemu_command.c | 18 ++++++++----------
 src/qemu/qemu_domain.c  | 45 +++++++++++++++++++++++++++++++++++++++++++++
 src/qemu/qemu_domain.h  |  2 ++
 src/qemu/qemu_hotplug.c | 18 ++++++++----------
 5 files changed, 65 insertions(+), 39 deletions(-)

-- 
1.8.2.1

--
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]