render / rpms / libvirt

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