mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
qemu: cgroup: Don't setup cgroups for FD-passed images
Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
dc20b1d774
commit
a575aa280d
@ -206,7 +206,9 @@ qemuSetupImageCgroupInternal(virDomainObj *vm,
|
||||
if (qemuSetupImagePathCgroup(vm, QEMU_DEV_VFIO, false) < 0)
|
||||
return -1;
|
||||
} else {
|
||||
if (!src->path || !virStorageSourceIsLocalStorage(src)) {
|
||||
if (!src->path ||
|
||||
!virStorageSourceIsLocalStorage(src) ||
|
||||
virStorageSourceIsFD(src)) {
|
||||
VIR_DEBUG("Not updating cgroups for disk path '%s', type: %s",
|
||||
NULLSTR(src->path), virStorageTypeToString(src->type));
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user