[libvirt] [PATCH 14/38] qemu: hotplug: Use 'tlsAlias' to see whether to detach the disk

Peter Krempa pkrempa at redhat.com
Wed May 30 12:41:10 UTC 2018


Using 'haveTLS' to do this is pointless if the alias is not set.

Signed-off-by: Peter Krempa <pkrempa at redhat.com>
---
 src/qemu/qemu_hotplug.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
index 5e2ca1b988..f8f1d2c323 100644
--- a/src/qemu/qemu_hotplug.c
+++ b/src/qemu/qemu_hotplug.c
@@ -3876,7 +3876,7 @@ qemuDomainRemoveDiskDevice(virQEMUDriverPtr driver,
     if (disk->src->pr)
         ignore_value(qemuMonitorDelObject(priv->mon, disk->src->pr->mgralias));

-    if (disk->src->haveTLS)
+    if (disk->src->tlsAlias)
         ignore_value(qemuMonitorDelObject(priv->mon, disk->src->tlsAlias));

     if (qemuDomainObjExitMonitor(driver, vm) < 0)
-- 
2.16.2




More information about the libvir-list mailing list