render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
e8e641
From 04203191c0261c6a12475865c7053e62b79756ee Mon Sep 17 00:00:00 2001
e8e641
Message-Id: <04203191c0261c6a12475865c7053e62b79756ee@dist-git>
e8e641
From: Michal Privoznik <mprivozn@redhat.com>
e8e641
Date: Tue, 7 Mar 2023 15:36:47 +0100
e8e641
Subject: [PATCH] qemuxml2argvdata: Extend vCPUs placement in
e8e641
 memory-hotplug-dimm-addr.xml
e8e641
e8e641
So far, the memory-hotplug-dimm-addr.xml test case pins its vCPUs
e8e641
onto CPUs 0-1 which correspond to NUMA node #0 (per
e8e641
tests/vircaps2xmldata/linux-basic/system/node/node0). Place vCPUs
e8e641
onto nodes #1 and #2 too so that DIMM <memory/> device can
e8e641
continue using thread-context after future patches. This
e8e641
configuration, as-is currently, would make QEMU error out anyway.
e8e641
e8e641
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
e8e641
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
e8e641
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
e8e641
(cherry picked from commit c4c90063a5955bca9f5afb5fe03502d3503241c3)
e8e641
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2185039
e8e641
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
e8e641
---
e8e641
 tests/qemuxml2argvdata/memory-hotplug-dimm-addr.xml             | 2 +-
e8e641
 .../memory-hotplug-dimm-addr.x86_64-latest.xml                  | 2 +-
e8e641
 2 files changed, 2 insertions(+), 2 deletions(-)
e8e641
e8e641
diff --git a/tests/qemuxml2argvdata/memory-hotplug-dimm-addr.xml b/tests/qemuxml2argvdata/memory-hotplug-dimm-addr.xml
e8e641
index 92ea679bbe..47486dda0c 100644
e8e641
--- a/tests/qemuxml2argvdata/memory-hotplug-dimm-addr.xml
e8e641
+++ b/tests/qemuxml2argvdata/memory-hotplug-dimm-addr.xml
e8e641
@@ -4,7 +4,7 @@
e8e641
   <maxMemory slots='16' unit='KiB'>1099511627776</maxMemory>
e8e641
   <memory unit='KiB'>7434230</memory>
e8e641
   <currentMemory unit='KiB'>7434230</currentMemory>
e8e641
-  <vcpu placement='static' cpuset='0-1'>2</vcpu>
e8e641
+  <vcpu placement='static' cpuset='0-1,4-5,9'>2</vcpu>
e8e641
   <os>
e8e641
     <type arch='i686' machine='pc'>hvm</type>
e8e641
     <boot dev='hd'/>
e8e641
diff --git a/tests/qemuxml2xmloutdata/memory-hotplug-dimm-addr.x86_64-latest.xml b/tests/qemuxml2xmloutdata/memory-hotplug-dimm-addr.x86_64-latest.xml
e8e641
index ef671fcfa3..0a32d5491a 100644
e8e641
--- a/tests/qemuxml2xmloutdata/memory-hotplug-dimm-addr.x86_64-latest.xml
e8e641
+++ b/tests/qemuxml2xmloutdata/memory-hotplug-dimm-addr.x86_64-latest.xml
e8e641
@@ -4,7 +4,7 @@
e8e641
   <maxMemory slots='16' unit='KiB'>1099511627776</maxMemory>
e8e641
   <memory unit='KiB'>7434230</memory>
e8e641
   <currentMemory unit='KiB'>7434230</currentMemory>
e8e641
-  <vcpu placement='static' cpuset='0-1'>2</vcpu>
e8e641
+  <vcpu placement='static' cpuset='0-1,4-5,9'>2</vcpu>
e8e641
   <os>
e8e641
     <type arch='i686' machine='pc'>hvm</type>
e8e641
     <boot dev='hd'/>
e8e641
-- 
e8e641
2.40.0