[libvirt] [PATCH v3 22/30] qemu: Allow NVMe disk in CGroups

Cole Robinson crobinso at redhat.com
Tue Dec 10 20:29:20 UTC 2019


On 12/2/19 9:26 AM, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
>  src/qemu/qemu_cgroup.c | 97 ++++++++++++++++++++++++++++++------------
>  1 file changed, 69 insertions(+), 28 deletions(-)

A lot going on here, a bit tough to digest, the extra helpers I
suggested should help here. But I didn't notice anything bad

Reviewed-by: Cole Robinson <crobinso at redhat.com>

- Cole




More information about the libvir-list mailing list