]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Do NOT autoadd NUMA node for s390
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 20 Jan 2025 16:10:24 +0000 (17:10 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 4 Feb 2025 08:15:45 +0000 (09:15 +0100)
In some cases, we might automatically add a NUMA node. But this
doesn't work for s390 really, because in its commit
v2.12.0-rc0~41^2~6 QEMU forbade specifying NUMA nodes for s390.
Suppress automatic adding of NUMA node on our side.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
src/qemu/qemu_domain.c
src/qemu/qemu_postparse.c

index c7d7ac26ce876828ad186c06f198e3c81edf4a34..6554b992f0e9e059aa3fa634a884813df3ee785e 100644 (file)
@@ -7761,7 +7761,8 @@ qemuDomainDefValidateMemoryHotplug(const virDomainDef *def,
         return 0;
     }
 
-    if (!ARCH_IS_PPC64(def->os.arch)) {
+    if (!ARCH_IS_PPC64(def->os.arch) &&
+        !ARCH_IS_S390(def->os.arch)) {
         /* due to guest support, qemu would silently enable NUMA with one node
          * once the memory hotplug backend is enabled. To avoid possible
          * confusion we will enforce user originated numa configuration along
index 1f9077982ad415a827a1cd9db2b4ff240279976a..20ee333e0d646e84f79cbea52c5ff70a4015af59 100644 (file)
@@ -1805,6 +1805,7 @@ qemuDomainDefNumaAutoAdd(virDomainDef *def,
 
     if (!abiUpdate ||
         !virDomainDefHasMemoryHotplug(def) ||
+        qemuDomainIsS390CCW(def) ||
         virDomainNumaGetNodeCount(def->numa) > 0) {
         return 0;
     }