[PATCH 34/36] qemu: cgroup: Don't setup cgroups for FD-passed images

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Peter Krempa <pkrempa@xxxxxxxxxx>
---
 src/qemu/qemu_cgroup.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index 9cf2d6474a..aac7c70054 100644
--- a/src/qemu/qemu_cgroup.c
+++ b/src/qemu/qemu_cgroup.c
@@ -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;
-- 
2.38.1




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux