render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
acda74
From d96dc2b87c220298d4de031cff72fd9a458dad74 Mon Sep 17 00:00:00 2001
acda74
Message-Id: <d96dc2b87c220298d4de031cff72fd9a458dad74@dist-git>
acda74
From: Peter Krempa <pkrempa@redhat.com>
acda74
Date: Tue, 31 Jan 2023 17:26:43 +0100
acda74
Subject: [PATCH] qemuFDPassTransferCommand: Mark that FD was passed
acda74
acda74
Until now the code didn't expect that we'd want to rollback/detach a FD
acda74
passed on the commandline, but whith disk backend FD passing this can
acda74
happen.
acda74
acda74
Properly mark the 'qemuFDPass' object as passed to qemu even when it was
acda74
done on the commandline.
acda74
acda74
Signed-off-by: Peter Krempa <pkrempa@redhat.com>
acda74
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
acda74
(cherry picked from commit 3b7b201b95f2facc01bd9f8a42aed0fad96789fa)
acda74
acda74
https://bugzilla.redhat.com/show_bug.cgi?id=2040272
acda74
---
acda74
 src/qemu/qemu_fd.c | 2 ++
acda74
 1 file changed, 2 insertions(+)
acda74
acda74
diff --git a/src/qemu/qemu_fd.c b/src/qemu/qemu_fd.c
acda74
index 51a8133fde..ebeeb65505 100644
acda74
--- a/src/qemu/qemu_fd.c
acda74
+++ b/src/qemu/qemu_fd.c
acda74
@@ -151,6 +151,8 @@ qemuFDPassTransferCommand(qemuFDPass *fdpass,
acda74
         fdpass->fds[i].fd = -1;
acda74
         virCommandAddArgList(cmd, "-add-fd", arg, NULL);
acda74
     }
acda74
+
acda74
+    fdpass->passed = true;
acda74
 }
acda74
 
acda74
 
acda74
-- 
acda74
2.39.1
acda74