edecca
From 3e0f1ade36fd228d822b955aa417a2d81ec137b7 Mon Sep 17 00:00:00 2001
edecca
Message-Id: <3e0f1ade36fd228d822b955aa417a2d81ec137b7@dist-git>
edecca
From: Pavel Hrdina <phrdina@redhat.com>
edecca
Date: Mon, 13 Aug 2018 19:21:41 +0200
edecca
Subject: [PATCH] tests: rename hugepages-pages into hugepages-numa-nodeset
edecca
MIME-Version: 1.0
edecca
Content-Type: text/plain; charset=UTF-8
edecca
Content-Transfer-Encoding: 8bit
edecca
edecca
Remove unnecessary XML elements as well.
edecca
edecca
<numatune> for numa guest is tested by numatune-memnode test.
edecca
edecca
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
edecca
(cherry picked from commit a83461b09af48dd22ebf7794e66268244387e3f1)
edecca
edecca
Conflicts:
edecca
    tests/qemuxml2argvdata/hugepages-numa-nodeset.args
edecca
        - missing upstream commit <caccbba64a>
edecca
edecca
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1615461
edecca
edecca
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
edecca
Reviewed-by: Ján Tomko <jtomko@redhat.com>
edecca
---
edecca
 ...s-pages.args => hugepages-numa-nodeset.args} | 17 +++++------------
edecca
 ...ges-pages.xml => hugepages-numa-nodeset.xml} | 12 +-----------
edecca
 tests/qemuxml2argvtest.c                        |  2 +-
edecca
 ...ges-pages.xml => hugepages-numa-nodeset.xml} | 17 +----------------
edecca
 tests/qemuxml2xmltest.c                         |  2 +-
edecca
 5 files changed, 9 insertions(+), 41 deletions(-)
edecca
 rename tests/qemuxml2argvdata/{hugepages-pages.args => hugepages-numa-nodeset.args} (77%)
edecca
 rename tests/qemuxml2argvdata/{hugepages-pages.xml => hugepages-numa-nodeset.xml} (74%)
edecca
 rename tests/qemuxml2xmloutdata/{hugepages-pages.xml => hugepages-numa-nodeset.xml} (66%)
edecca
edecca
diff --git a/tests/qemuxml2argvdata/hugepages-pages.args b/tests/qemuxml2argvdata/hugepages-numa-nodeset.args
edecca
similarity index 77%
edecca
rename from tests/qemuxml2argvdata/hugepages-pages.args
edecca
rename to tests/qemuxml2argvdata/hugepages-numa-nodeset.args
edecca
index 7ece0272a0..22f0e605fe 100644
edecca
--- a/tests/qemuxml2argvdata/hugepages-pages.args
edecca
+++ b/tests/qemuxml2argvdata/hugepages-numa-nodeset.args
edecca
@@ -11,20 +11,16 @@ QEMU_AUDIO_DRV=none \
edecca
 -m 4096 \
edecca
 -smp 4,sockets=4,cores=1,threads=1 \
edecca
 -object memory-backend-file,id=ram-node0,prealloc=yes,\
edecca
-mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824,\
edecca
-host-nodes=0-3,policy=bind \
edecca
+mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
edecca
 -numa node,nodeid=0,cpus=0,memdev=ram-node0 \
edecca
 -object memory-backend-file,id=ram-node1,prealloc=yes,\
edecca
-mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,size=1073741824,\
edecca
-host-nodes=0-3,policy=bind \
edecca
+mem-path=/dev/hugepages2M/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
edecca
 -numa node,nodeid=1,cpus=1,memdev=ram-node1 \
edecca
 -object memory-backend-file,id=ram-node2,prealloc=yes,\
edecca
-mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824,\
edecca
-host-nodes=0-3,policy=bind \
edecca
+mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
edecca
 -numa node,nodeid=2,cpus=2,memdev=ram-node2 \
edecca
 -object memory-backend-file,id=ram-node3,prealloc=yes,\
edecca
-mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824,\
edecca
-host-nodes=3,policy=bind \
edecca
+mem-path=/dev/hugepages1G/libvirt/qemu/-1-QEMUGuest1,size=1073741824 \
edecca
 -numa node,nodeid=3,cpus=3,memdev=ram-node3 \
edecca
 -uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
edecca
 -display none \
edecca
@@ -37,7 +33,4 @@ server,nowait \
edecca
 -no-shutdown \
edecca
 -no-acpi \
edecca
 -boot c \
edecca
--usb \
edecca
--drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-ide0-0-0 \
edecca
--device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
edecca
--device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3
edecca
+-usb
edecca
diff --git a/tests/qemuxml2argvdata/hugepages-pages.xml b/tests/qemuxml2argvdata/hugepages-numa-nodeset.xml
edecca
similarity index 74%
edecca
rename from tests/qemuxml2argvdata/hugepages-pages.xml
edecca
rename to tests/qemuxml2argvdata/hugepages-numa-nodeset.xml
edecca
index f9270782d4..e81fa44d58 100644
edecca
--- a/tests/qemuxml2argvdata/hugepages-pages.xml
edecca
+++ b/tests/qemuxml2argvdata/hugepages-numa-nodeset.xml
edecca
@@ -10,10 +10,6 @@
edecca
     </hugepages>
edecca
   </memoryBacking>
edecca
   <vcpu placement='static'>4</vcpu>
edecca
-  <numatune>
edecca
-    <memory mode='strict' nodeset='0-3'/>
edecca
-    <memnode cellid='3' mode='strict' nodeset='3'/>
edecca
-  </numatune>
edecca
   <os>
edecca
     <type arch='i686' machine='pc'>hvm</type>
edecca
     <boot dev='hd'/>
edecca
@@ -32,16 +28,10 @@
edecca
   <on_crash>destroy</on_crash>
edecca
   <devices>
edecca
     <emulator>/usr/bin/qemu-system-i686</emulator>
edecca
-    <disk type='block' device='disk'>
edecca
-      <source dev='/dev/HostVG/QEMUGuest1'/>
edecca
-      <target dev='hda' bus='ide'/>
edecca
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
edecca
-    </disk>
edecca
     <controller type='usb' index='0'/>
edecca
-    <controller type='ide' index='0'/>
edecca
     <controller type='pci' index='0' model='pci-root'/>
edecca
     <input type='mouse' bus='ps2'/>
edecca
     <input type='keyboard' bus='ps2'/>
edecca
-    <memballoon model='virtio'/>
edecca
+    <memballoon model='none'/>
edecca
   </devices>
edecca
 </domain>
edecca
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
edecca
index ea26d17a63..3bb5efbd8d 100644
edecca
--- a/tests/qemuxml2argvtest.c
edecca
+++ b/tests/qemuxml2argvtest.c
edecca
@@ -954,7 +954,7 @@ mymain(void)
edecca
     DO_TEST("hugepages-numa-default-dimm",
edecca
             QEMU_CAPS_DEVICE_PC_DIMM,
edecca
             QEMU_CAPS_OBJECT_MEMORY_FILE);
edecca
-    DO_TEST("hugepages-pages",
edecca
+    DO_TEST("hugepages-numa-nodeset",
edecca
             QEMU_CAPS_OBJECT_MEMORY_RAM,
edecca
             QEMU_CAPS_OBJECT_MEMORY_FILE);
edecca
     DO_TEST("hugepages-pages2", QEMU_CAPS_OBJECT_MEMORY_RAM,
edecca
diff --git a/tests/qemuxml2xmloutdata/hugepages-pages.xml b/tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml
edecca
similarity index 66%
edecca
rename from tests/qemuxml2xmloutdata/hugepages-pages.xml
edecca
rename to tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml
edecca
index 498610a217..affd124048 100644
edecca
--- a/tests/qemuxml2xmloutdata/hugepages-pages.xml
edecca
+++ b/tests/qemuxml2xmloutdata/hugepages-numa-nodeset.xml
edecca
@@ -10,10 +10,6 @@
edecca
     </hugepages>
edecca
   </memoryBacking>
edecca
   <vcpu placement='static'>4</vcpu>
edecca
-  <numatune>
edecca
-    <memory mode='strict' nodeset='0-3'/>
edecca
-    <memnode cellid='3' mode='strict' nodeset='3'/>
edecca
-  </numatune>
edecca
   <os>
edecca
     <type arch='i686' machine='pc'>hvm</type>
edecca
     <boot dev='hd'/>
edecca
@@ -32,23 +28,12 @@
edecca
   <on_crash>destroy</on_crash>
edecca
   <devices>
edecca
     <emulator>/usr/bin/qemu-system-i686</emulator>
edecca
-    <disk type='block' device='disk'>
edecca
-      <driver name='qemu' type='raw'/>
edecca
-      <source dev='/dev/HostVG/QEMUGuest1'/>
edecca
-      <target dev='hda' bus='ide'/>
edecca
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
edecca
-    </disk>
edecca
     <controller type='usb' index='0'>
edecca
       <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
edecca
     </controller>
edecca
-    <controller type='ide' index='0'>
edecca
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
edecca
-    </controller>
edecca
     <controller type='pci' index='0' model='pci-root'/>
edecca
     <input type='mouse' bus='ps2'/>
edecca
     <input type='keyboard' bus='ps2'/>
edecca
-    <memballoon model='virtio'>
edecca
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
edecca
-    </memballoon>
edecca
+    <memballoon model='none'/>
edecca
   </devices>
edecca
 </domain>
edecca
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
edecca
index b4bd9ebc4c..2c3d16495e 100644
edecca
--- a/tests/qemuxml2xmltest.c
edecca
+++ b/tests/qemuxml2xmltest.c
edecca
@@ -333,7 +333,7 @@ mymain(void)
edecca
     DO_TEST("pages-discard", NONE);
edecca
     DO_TEST("hugepages-default", NONE);
edecca
     DO_TEST("hugepages-numa-default-dimm", NONE);
edecca
-    DO_TEST("hugepages-pages", NONE);
edecca
+    DO_TEST("hugepages-numa-nodeset", NONE);
edecca
     DO_TEST("hugepages-pages2", NONE);
edecca
     DO_TEST("hugepages-pages3", NONE);
edecca
     DO_TEST("hugepages-pages4", NONE);
edecca
-- 
edecca
2.18.0
edecca