]> xenbits.xensource.com Git - libvirt.git/commit
qemu: virtiofs: do not crash if cgroups are missing
authorJán Tomko <jtomko@redhat.com>
Tue, 5 Mar 2024 13:55:26 +0000 (14:55 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 18 Mar 2024 14:20:24 +0000 (15:20 +0100)
commita9da0092198ba2f278cea370f8251f2e29f57c7d
tree6d7a4cbe8b636299818ff68048d45c01c56ef495
parent0bb33164d0b145ee7a8b4159fa44babe6a01f842
qemu: virtiofs: do not crash if cgroups are missing

On domain startup, qemuSetupCgroupForExtDevices checks
if a cgroup controller is present and skips the setup if not.

Add a similar check to qemuVirtioFSSetupCgroup to prevent
crashing when hotplugging a virtiofs filesystem.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_virtiofs.c