]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
tests: qemuhotplugtest: Set the cpu version at source for PPC64 tests
authorNarayana Murty N <nnmlinux@linux.ibm.com>
Tue, 13 May 2025 07:43:23 +0000 (03:43 -0400)
committerJán Tomko <jtomko@redhat.com>
Thu, 22 May 2025 13:23:22 +0000 (15:23 +0200)
Commit 140ff3c5141 ("tests: qemuhotplugtest: Fix arch-specific parts of
'ppc64' test XMLs") hardcoded the CPU model as POWER9 in the test result
XMLs. However, this value actually reflects the host CPU model detected
at build or test time, and can vary depending on the machine where the
tests run.

As newer POWER CPU models (e.g., POWER10, POWER11) become common, this
requires continuous updates to the test result files to match the CPU
version detected on the host. This adds unnecessary maintenance effort.

Fix this by updating the test source domain XMLs to specify POWER9 (or
any fixed version) as the CPU model. This ensures the test result files
stay stable and do not require updates every time a newer CPU is used on
the host system.

Signed-off-by: Narayana Murty N <nnmlinux@linux.ibm.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tests/qemuhotplugtestcpus/ppc64-modern-bulk-domain.xml
tests/qemuhotplugtestcpus/ppc64-modern-individual-domain.xml
tests/qemuxmlconfdata/memory-hotplug-nvdimm-ppc64.xml
tests/qemuxmlconfdata/memory-hotplug-ppc64-nonuma.xml

index f7c754ccf7bd3759baa9680e7b111c30e35cf75d..abef39b130bf87b8cd19adc1745495e9d905c860 100644 (file)
@@ -8,7 +8,8 @@
     <type arch='ppc64' machine='pseries'>hvm</type>
     <boot dev='network'/>
   </os>
-  <cpu>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>POWER9</model>
     <topology sockets="1" cores="4" threads="8"/>
   </cpu>
   <on_poweroff>destroy</on_poweroff>
index f7c754ccf7bd3759baa9680e7b111c30e35cf75d..abef39b130bf87b8cd19adc1745495e9d905c860 100644 (file)
@@ -8,7 +8,8 @@
     <type arch='ppc64' machine='pseries'>hvm</type>
     <boot dev='network'/>
   </os>
-  <cpu>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>POWER9</model>
     <topology sockets="1" cores="4" threads="8"/>
   </cpu>
   <on_poweroff>destroy</on_poweroff>
index bf7df9a259e25dbf779cde2b493ea45a6a3d0102..d0868db6721a36810d2a0eb85e7561a0b586a559 100644 (file)
@@ -9,7 +9,8 @@
     <type arch='ppc64' machine='pseries'>hvm</type>
     <boot dev='hd'/>
   </os>
-  <cpu>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>POWER9</model>
     <topology sockets='2' dies='1' cores='1' threads='1'/>
     <numa>
       <cell id='0' cpus='0-1' memory='1048576' unit='KiB'/>
index 0623fde6ee65c39abcf71d214ce0fe1711034b21..436a8d18958db9a0a75e18df4cf5eb005b1872b9 100644 (file)
@@ -9,6 +9,9 @@
     <type arch='ppc64' machine='pseries'>hvm</type>
     <boot dev='hd'/>
   </os>
+  <cpu mode='custom' match='exact' check='none'>
+    <model fallback='forbid'>POWER9</model>
+  </cpu>
   <clock offset='utc'/>
   <on_poweroff>destroy</on_poweroff>
   <on_reboot>restart</on_reboot>