[PATCH 4/4] DO_NOT_APPLY_UPSTREAM: reproducer

Peter Krempa pkrempa at redhat.com
Wed Aug 10 14:06:49 UTC 2022


To reproduce the problem apply this patch and run a block copy job:

  virsh blockcopy cd hda /tmp/ble.img --transient-job --pivot

Prior to the fix the virsh call will hang and the VM will not be usable
any more.
---
 src/qemu/qemu_driver.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index 254957deba..f51c70eb21 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -14705,6 +14705,7 @@ qemuDomainBlockJobAbort(virDomainPtr dom,
     qemuDomainSaveStatus(vm);

     if (!async) {
+        kill(vm->pid, 11);
         qemuBlockJobUpdate(vm, job, VIR_ASYNC_JOB_NONE);
         while (qemuBlockJobIsRunning(job)) {
             if (qemuDomainObjWait(vm) < 0) {
-- 
2.37.1



More information about the libvir-list mailing list