[libvirt PATCH 00/15] RFC: basic CGroup support with qemu:///session

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

 



From: Marc-André Lureau <marcandre.lureau@xxxxxxxxxx>

Hi,

This is a small series that allows basic QEMU VM CGroup support with
the help of machined --user:
https://github.com/systemd/systemd/pull/15312

The first few patches are fixes to register dbus and slirp-helper
correctly with the VM cgroup.

A few changes are done to the machined support, adding session
support, and registering the VM to get a systemd scope cgroup under
user machine.slice.

Marc-André Lureau (15):
  slirp: leave the dbus daemon running on error
  slirp: add helper to VM cgroup
  qemu-dbus: prevent double start of the bus daemon
  qemu-dbus: remove unused variable
  qemu-dbus: register DBus bus to the VM cgroup
  qemu-cgroup: remove unnecessary include
  dbus: rename virDBusIs* -> virDBusSystemIs*
  dbus: add virDBusIsService{Enabled,Registered} with @conn argument
  systemd: check org.freedesktop.machine1 registration
  systemd: only check for activitable machine1 service
  systemd: register machines against session service
  cgroup: return directly if there is nothing to remove
  qemu-cgroup: register ext devices when cpu/cpuset controller are
    missing
  qemu: create cgroup regardless of controller support
  qemu-cgroup: drop the need for privileges to use cgroup

 src/qemu/qemu_cgroup.c        | 13 -------
 src/qemu/qemu_dbus.c          | 29 +++++++++++++-
 src/qemu/qemu_dbus.h          |  3 ++
 src/qemu/qemu_extdevice.c     | 12 ++++++
 src/qemu/qemu_process.c       |  6 +--
 src/qemu/qemu_slirp.c         | 16 +++++++-
 src/qemu/qemu_slirp.h         |  3 ++
 src/util/vircgroup.c          |  5 +++
 src/util/vircgroupv2devices.c |  7 ++--
 src/util/virdbus.c            | 71 ++++++++++++++++++++++++++---------
 src/util/virdbus.h            |  7 +++-
 src/util/virfirewalld.c       |  2 +-
 src/util/virsystemd.c         | 27 +++++--------
 tests/virsystemdtest.c        | 35 -----------------
 14 files changed, 140 insertions(+), 96 deletions(-)

-- 
2.26.0.rc2.42.g98cedd0233





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

  Powered by Linux