|
|
639072 |
From 10d13b42fdec802e07b00825058d3e33ee843f50 Mon Sep 17 00:00:00 2001
|
|
|
639072 |
Message-Id: <10d13b42fdec802e07b00825058d3e33ee843f50@dist-git>
|
|
|
639072 |
From: Michal Privoznik <mprivozn@redhat.com>
|
|
|
639072 |
Date: Wed, 28 Sep 2022 10:12:36 +0200
|
|
|
639072 |
Subject: [PATCH] qemuProcessReconnect: Don't build memory paths
|
|
|
639072 |
MIME-Version: 1.0
|
|
|
639072 |
Content-Type: text/plain; charset=UTF-8
|
|
|
639072 |
Content-Transfer-Encoding: 8bit
|
|
|
639072 |
|
|
|
639072 |
Let me take you on a short trip to history. A long time ago,
|
|
|
639072 |
libvirt would configure all QEMUs to use $hugetlbfs/libvirt/qemu
|
|
|
639072 |
for their hugepages setup. This was problematic, because it did
|
|
|
639072 |
not allow enough separation between guests. Therefore in
|
|
|
639072 |
v3.0.0-rc1~367 the path changed to a per-domain basis:
|
|
|
639072 |
|
|
|
639072 |
$hugetlbfs/libvirt/qemu/$domainShortName
|
|
|
639072 |
|
|
|
639072 |
And to help with migration on daemon restart a call to
|
|
|
639072 |
qemuProcessBuildDestroyMemoryPaths() was added to
|
|
|
639072 |
qemuProcessReconnect() (well, it was named
|
|
|
639072 |
qemuProcessBuildDestroyHugepagesPath() back then, see
|
|
|
639072 |
v3.10.0-rc1~174). This was desirable then, because the memory
|
|
|
639072 |
hotplug code did not call the function, it simply assumes
|
|
|
639072 |
per-domain paths to exist. But this changed in v3.5.0-rc1~92
|
|
|
639072 |
after which the per-domain paths are created on memory hotplug
|
|
|
639072 |
too.
|
|
|
639072 |
|
|
|
639072 |
Therefore, it's no longer necessary to create these paths in
|
|
|
639072 |
qemuProcessReconnect(). They are created exactly when needed
|
|
|
639072 |
(domain startup and memory hotplug).
|
|
|
639072 |
|
|
|
639072 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
639072 |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
|
639072 |
(cherry picked from commit 3478cca80ea7382cfdbff836d5d0b92aa014297b)
|
|
|
639072 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2132176
|
|
|
639072 |
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
|
|
|
639072 |
---
|
|
|
639072 |
src/qemu/qemu_process.c | 3 ---
|
|
|
639072 |
1 file changed, 3 deletions(-)
|
|
|
639072 |
|
|
|
639072 |
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
|
|
|
639072 |
index 1164340aa9..0fb665bc82 100644
|
|
|
639072 |
--- a/src/qemu/qemu_process.c
|
|
|
639072 |
+++ b/src/qemu/qemu_process.c
|
|
|
639072 |
@@ -8869,9 +8869,6 @@ qemuProcessReconnect(void *opaque)
|
|
|
639072 |
goto cleanup;
|
|
|
639072 |
}
|
|
|
639072 |
|
|
|
639072 |
- if (qemuProcessBuildDestroyMemoryPaths(driver, obj, NULL, true) < 0)
|
|
|
639072 |
- goto error;
|
|
|
639072 |
-
|
|
|
639072 |
if ((qemuDomainAssignAddresses(obj->def, priv->qemuCaps,
|
|
|
639072 |
driver, obj, false)) < 0) {
|
|
|
639072 |
goto error;
|
|
|
639072 |
--
|
|
|
639072 |
2.38.1
|
|
|
639072 |
|