]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Allow NVMe disk in CGroups
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 24 Jun 2019 10:34:45 +0000 (12:34 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 17 Dec 2019 09:04:44 +0000 (10:04 +0100)
commitc988a39c7bfaa9230c17146fd55e6cab009c120a
tree44880c8e1371d5a847d55a661545de3b75fa1318
parent329a68029703c67678ddb722f68186cdaeb71fb8
qemu: Allow NVMe disk in CGroups

If a domain has an NVMe disk configured, then we need to allow it
on devices CGroup so that qemu can access it. There is one caveat
though - if an NVMe disk is read only we need CGroup to allow
write too. This is because when opening the device, qemu does
couple of ioctl()-s which are considered as write.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_cgroup.c