|
Pablo Greco |
40546a |
From 0ca4828af101259cf2cbe30004c68f2081394f91 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <0ca4828af101259cf2cbe30004c68f2081394f91@dist-git>
|
|
Pablo Greco |
40546a |
From: Laine Stump <laine@laine.org>
|
|
Pablo Greco |
40546a |
Date: Mon, 8 Apr 2019 10:57:32 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] qemu_hotplug: remove another erroneous
|
|
Pablo Greco |
40546a |
qemuDomainDetachExtensionDevice() call
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
qemuDomainRemoveRNGDevice() calls qemuDomainDetachExtensionDevice().
|
|
Pablo Greco |
40546a |
According to commit 1d1e264f1 that added this code, it should not be
|
|
Pablo Greco |
40546a |
necessary to explicitly remove the zPCI extension device for a PCI
|
|
Pablo Greco |
40546a |
device during unplug, because "QEMU implements an unplug callback
|
|
Pablo Greco |
40546a |
which will unplug both PCI and zPCI device in a cascaded way". In
|
|
Pablo Greco |
40546a |
fact, no other devices call qemuDomainDetachExtensionDevice() during
|
|
Pablo Greco |
40546a |
their qemuDomainRemove*Device() function, so it should be removed from
|
|
Pablo Greco |
40546a |
qemuDomainRemoveRNGDevice as well.
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Laine Stump <laine@laine.org>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
(cherry picked from commit e18e9b72a99f93cd4b14f39c60baa7c5ea35e5db)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
https://bugzilla.redhat.com/show_bug.cgi?id=1508149
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <20190408085732.28684-16-abologna@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Laine Stump <laine@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/qemu/qemu_hotplug.c | 3 ---
|
|
Pablo Greco |
40546a |
1 file changed, 3 deletions(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c
|
|
Pablo Greco |
40546a |
index f16213c6e0..410cdca3c5 100644
|
|
Pablo Greco |
40546a |
--- a/src/qemu/qemu_hotplug.c
|
|
Pablo Greco |
40546a |
+++ b/src/qemu/qemu_hotplug.c
|
|
Pablo Greco |
40546a |
@@ -4422,9 +4422,6 @@ qemuDomainRemoveRNGDevice(virQEMUDriverPtr driver,
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
qemuDomainObjEnterMonitor(driver, vm);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
- if (qemuDomainDetachExtensionDevice(priv->mon, &rng->info) < 0)
|
|
Pablo Greco |
40546a |
- rc = -1;
|
|
Pablo Greco |
40546a |
-
|
|
Pablo Greco |
40546a |
if (rc == 0 &&
|
|
Pablo Greco |
40546a |
qemuMonitorDelObject(priv->mon, objAlias) < 0)
|
|
Pablo Greco |
40546a |
rc = -1;
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|