bugfix patches list: d677de remote: fix driver name check for libxl driver 075641 systemd: start libvirtd after firewalld iptables services 06fc99 qemuDomainCleanupRun: Actually run cleanup callbacks in reverse order 01626c virDevMapperGetTargetsImpl: quit early if device is not a devmapper target 006782 qemu: only stop external devices after the domain 42a415 qemuDomainStorageSourcePrivateDispose: Free httpcookie cc8c29 Don't require secdrivers to implement .domainMoveImageMetadata 0230e3 qemuProcessStop: Use XATTRs to restore seclabels on disks a domain is mirroring into 8fd274 qemuProcessStop: Reattach NVMe disks a domain is mirroring into 55029d security: don't fail if built without attr support a5a297 qemu: Skip pre creation of NVMe disks 2a372 Fix some wrong usage of ATTRIBUTE_NONNULL e728ff conf: Increase cpuset length limit for CPU pinning 8f58a4 virQEMUDriverConfigNew: Add slash to cfg defaultTLSx509certdir for non-embeded driver 1b22dd qemuDomainSetNumaParamsLive: set nodeset for root cgroup bdb8f2 qemu: do not add model when actual iface type is hostdev Signed-off-by: Jin Yan <jinyan12@huawei.com>
48 lines
1.5 KiB
Diff
48 lines
1.5 KiB
Diff
From 7dd15a340179598dece5546c9e4fec9b8e47aca7 Mon Sep 17 00:00:00 2001
|
|
From: Ján Tomko <jtomko@redhat.com>
|
|
Date: Tue, 12 May 2020 12:59:07 +0200
|
|
Subject: [PATCH] qemu: only stop external devices after the domain
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
A failure in qemuProcessLaunch would lead to qemuExtDevicesStop
|
|
being called twice - once in the cleanup section and then again
|
|
in qemuProcessStop.
|
|
|
|
However, the first one is called while the QEMU process is
|
|
still running, which is too soon for the swtpm process, because
|
|
the swtmp_ioctl command can lock up:
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1822523
|
|
|
|
Remove the first call and only leave the one in qemuProcessStop,
|
|
which is called after the QEMU process is killed.
|
|
|
|
cherry-pick from commit: 006782a8bc5a27125211946fcb12a40f7d4ed12a
|
|
|
|
Signed-off-by: Ján Tomko <jtomko@redhat.com>
|
|
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
|
Reviewed-by: Erik Skultety <eskultet@redhat.com>
|
|
Signed-off-by: Jin Yan <jinyan12@huawei.com>
|
|
---
|
|
src/qemu/qemu_process.c | 2 --
|
|
1 file changed, 2 deletions(-)
|
|
|
|
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
index 6b9f6fb..6fbe0c1 100644
|
|
--- a/src/qemu/qemu_process.c
|
|
+++ b/src/qemu/qemu_process.c
|
|
@@ -6998,8 +6998,6 @@ qemuProcessLaunch(virConnectPtr conn,
|
|
ret = 0;
|
|
|
|
cleanup:
|
|
- if (ret < 0)
|
|
- qemuExtDevicesStop(driver, vm);
|
|
qemuDomainSecretDestroy(vm);
|
|
return ret;
|
|
}
|
|
--
|
|
1.8.3.1
|
|
|