We are already doing that for some devices (e.g. disks,
hostdevs), but completely forgot about some others (chardevs and
RNGs). So far the hotplug worked by pure chance as /dev/random
and /dev/urandom are enabled in the device CGroups by default.
Michal Privoznik (2):
qemu: Update cgroup on RNG hotplug
qemu: Update cgroup on chardev hotplug
src/qemu/qemu_cgroup.c | 108 +++++++++++++++++++++++++++++++++++++++++-------
src/qemu/qemu_cgroup.h | 8 ++++
src/qemu/qemu_hotplug.c | 37 ++++++++++++++---
3 files changed, 131 insertions(+), 22 deletions(-)
--
2.8.4