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

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



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


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