Blame SOURCES/libvirt-tests-remove-unnecessary-XML-elements-from-hugepages-numa-default.patch

982648
From 1dc9941c5aa7fb921a1f868669b12108b477f572 Mon Sep 17 00:00:00 2001
982648
Message-Id: <1dc9941c5aa7fb921a1f868669b12108b477f572@dist-git>
982648
From: Pavel Hrdina <phrdina@redhat.com>
982648
Date: Mon, 13 Aug 2018 18:16:07 +0200
982648
Subject: [PATCH] tests: remove unnecessary XML elements from
982648
 hugepages-numa-default
982648
MIME-Version: 1.0
982648
Content-Type: text/plain; charset=UTF-8
982648
Content-Transfer-Encoding: 8bit
982648
982648
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
982648
(cherry picked from commit 335c4a5e26b23d4dcb86ede5a43c5bb8a68b604e)
982648
982648
Conflicts:
982648
    tests/qemuxml2argvdata/hugepages-numa-default.args
982648
        - missing upstream commit <caccbba64a>
982648
982648
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1591235
982648
982648
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
982648
Reviewed-by: Ján Tomko <jtomko@redhat.com>
982648
---
982648
 .../hugepages-numa-default.args               | 42 ++---------
982648
 .../hugepages-numa-default.xml                | 74 +------------------
982648
 tests/qemuxml2argvtest.c                      |  6 --
982648
 3 files changed, 7 insertions(+), 115 deletions(-)
982648
982648
diff --git a/tests/qemuxml2argvdata/hugepages-numa-default.args b/tests/qemuxml2argvdata/hugepages-numa-default.args
982648
index 20c7802fd8..cc2223aee1 100644
982648
--- a/tests/qemuxml2argvdata/hugepages-numa-default.args
982648
+++ b/tests/qemuxml2argvdata/hugepages-numa-default.args
982648
@@ -3,7 +3,7 @@ PATH=/bin \
982648
 HOME=/home/test \
982648
 USER=test \
982648
 LOGNAME=test \
982648
-QEMU_AUDIO_DRV=spice \
982648
+QEMU_AUDIO_DRV=none \
982648
 /usr/bin/qemu-system-x86_64 \
982648
 -name fedora \
982648
 -S \
982648
@@ -14,46 +14,14 @@ QEMU_AUDIO_DRV=spice \
982648
 -mem-path /dev/hugepages2M/libvirt/qemu/-1-fedora \
982648
 -numa node,nodeid=0,cpus=0-1,mem=1024 \
982648
 -uuid 63840878-0deb-4095-97e6-fc444d9bc9fa \
982648
+-display none \
982648
 -no-user-config \
982648
 -nodefaults \
982648
 -chardev socket,id=charmonitor,path=/tmp/lib/domain--1-fedora/monitor.sock,\
982648
 server,nowait \
982648
 -mon chardev=charmonitor,id=monitor,mode=control \
982648
--rtc base=utc,driftfix=slew \
982648
--no-hpet \
982648
+-rtc base=utc \
982648
 -no-shutdown \
982648
--global PIIX4_PM.disable_s3=1 \
982648
--global PIIX4_PM.disable_s4=1 \
982648
+-no-acpi \
982648
 -boot c \
982648
--device ich9-usb-ehci1,id=usb,bus=pci.0,addr=0x6.0x7 \
982648
--device ich9-usb-uhci1,masterbus=usb.0,firstport=0,bus=pci.0,multifunction=on,\
982648
-addr=0x6 \
982648
--device ich9-usb-uhci2,masterbus=usb.0,firstport=2,bus=pci.0,addr=0x6.0x1 \
982648
--device ich9-usb-uhci3,masterbus=usb.0,firstport=4,bus=pci.0,addr=0x6.0x2 \
982648
--device virtio-serial-pci,id=virtio-serial0,bus=pci.0,addr=0x5 \
982648
--drive file=/var/lib/libvirt/images/fedora.qcow2,format=qcow2,if=none,\
982648
-id=drive-virtio-disk0 \
982648
--device virtio-blk-pci,bus=pci.0,addr=0x7,drive=drive-virtio-disk0,\
982648
-id=virtio-disk0 \
982648
--drive if=none,id=drive-ide0-0-0,media=cdrom,readonly=on \
982648
--device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 \
982648
--chardev socket,id=charchannel0,\
982648
-path=/var/lib/libvirt/qemu/channel/target/fedora.org.qemu.guest_agent.0,server,\
982648
-nowait \
982648
--device virtserialport,bus=virtio-serial0.0,nr=1,chardev=charchannel0,\
982648
-id=channel0,name=org.qemu.guest_agent.0 \
982648
--chardev spicevmc,id=charchannel1,name=vdagent \
982648
--device virtserialport,bus=virtio-serial0.0,nr=2,chardev=charchannel1,\
982648
-id=channel1,name=com.redhat.spice.0 \
982648
--device usb-tablet,id=input0,bus=usb.0,port=1 \
982648
--spice port=5901,tls-port=5902,addr=127.0.0.1,x509-dir=/etc/pki/libvirt-spice \
982648
--vga qxl \
982648
--global qxl-vga.ram_size=67108864 \
982648
--global qxl-vga.vram_size=67108864 \
982648
--device intel-hda,id=sound0,bus=pci.0,addr=0x4 \
982648
--device hda-duplex,id=sound0-codec0,bus=sound0.0,cad=0 \
982648
--chardev spicevmc,id=charredir0,name=usbredir \
982648
--device usb-redir,chardev=charredir0,id=redir0,bus=usb.0,port=2 \
982648
--chardev spicevmc,id=charredir1,name=usbredir \
982648
--device usb-redir,chardev=charredir1,id=redir1,bus=usb.0,port=3 \
982648
--device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x8
982648
+-usb
982648
diff --git a/tests/qemuxml2argvdata/hugepages-numa-default.xml b/tests/qemuxml2argvdata/hugepages-numa-default.xml
982648
index d3c6308be0..6bbd80d515 100644
982648
--- a/tests/qemuxml2argvdata/hugepages-numa-default.xml
982648
+++ b/tests/qemuxml2argvdata/hugepages-numa-default.xml
982648
@@ -11,90 +11,20 @@
982648
     <type arch='x86_64' machine='pc-i440fx-2.3'>hvm</type>
982648
     <boot dev='hd'/>
982648
   </os>
982648
-  <features>
982648
-    <acpi/>
982648
-    <apic/>
982648
-    <pae/>
982648
-  </features>
982648
   <cpu>
982648
     <numa>
982648
       <cell id='0' cpus='0-1' memory='1048576' unit='KiB'/>
982648
     </numa>
982648
   </cpu>
982648
-  <clock offset='utc'>
982648
-    <timer name='rtc' tickpolicy='catchup'/>
982648
-    <timer name='pit' tickpolicy='delay'/>
982648
-    <timer name='hpet' present='no'/>
982648
-  </clock>
982648
   <on_poweroff>destroy</on_poweroff>
982648
   <on_reboot>restart</on_reboot>
982648
   <on_crash>restart</on_crash>
982648
-  <pm>
982648
-    <suspend-to-mem enabled='no'/>
982648
-    <suspend-to-disk enabled='no'/>
982648
-  </pm>
982648
   <devices>
982648
     <emulator>/usr/bin/qemu-system-x86_64</emulator>
982648
-    <disk type='file' device='disk'>
982648
-      <driver name='qemu' type='qcow2'/>
982648
-      <source file='/var/lib/libvirt/images/fedora.qcow2'/>
982648
-      <target dev='vda' bus='virtio'/>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
982648
-    </disk>
982648
-    <disk type='block' device='cdrom'>
982648
-      <driver name='qemu' type='raw'/>
982648
-      <target dev='hda' bus='ide'/>
982648
-      <readonly/>
982648
-      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
982648
-    </disk>
982648
-    <controller type='usb' index='0' model='ich9-ehci1'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/>
982648
-    </controller>
982648
-    <controller type='usb' index='0' model='ich9-uhci1'>
982648
-      <master startport='0'/>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0' multifunction='on'/>
982648
-    </controller>
982648
-    <controller type='usb' index='0' model='ich9-uhci2'>
982648
-      <master startport='2'/>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x1'/>
982648
-    </controller>
982648
-    <controller type='usb' index='0' model='ich9-uhci3'>
982648
-      <master startport='4'/>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x2'/>
982648
-    </controller>
982648
+    <controller type='usb' index='0'/>
982648
     <controller type='pci' index='0' model='pci-root'/>
982648
-    <controller type='ide' index='0'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
982648
-    </controller>
982648
-    <controller type='virtio-serial' index='0'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
982648
-    </controller>
982648
-    <channel type='unix'>
982648
-      <source mode='bind' path='/var/lib/libvirt/qemu/channel/target/fedora.org.qemu.guest_agent.0'/>
982648
-      <target type='virtio' name='org.qemu.guest_agent.0'/>
982648
-      <address type='virtio-serial' controller='0' bus='0' port='1'/>
982648
-    </channel>
982648
-    <channel type='spicevmc'>
982648
-      <target type='virtio' name='com.redhat.spice.0'/>
982648
-      <address type='virtio-serial' controller='0' bus='0' port='2'/>
982648
-    </channel>
982648
-    <input type='tablet' bus='usb'/>
982648
     <input type='mouse' bus='ps2'/>
982648
     <input type='keyboard' bus='ps2'/>
982648
-    <graphics type='spice' autoport='yes'/>
982648
-    <sound model='ich6'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
982648
-    </sound>
982648
-    <video>
982648
-      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1'/>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
982648
-    </video>
982648
-    <redirdev bus='usb' type='spicevmc'>
982648
-    </redirdev>
982648
-    <redirdev bus='usb' type='spicevmc'>
982648
-    </redirdev>
982648
-    <memballoon model='virtio'>
982648
-      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
982648
-    </memballoon>
982648
+    <memballoon model='none'/>
982648
   </devices>
982648
 </domain>
982648
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
982648
index bf3fb156a2..19fb7a0931 100644
982648
--- a/tests/qemuxml2argvtest.c
982648
+++ b/tests/qemuxml2argvtest.c
982648
@@ -947,12 +947,6 @@ mymain(void)
982648
 
982648
     DO_TEST("hugepages-default", NONE);
982648
     DO_TEST("hugepages-numa-default",
982648
-            QEMU_CAPS_PIIX_DISABLE_S3, QEMU_CAPS_PIIX_DISABLE_S4,
982648
-            QEMU_CAPS_VIRTIO_SCSI,
982648
-            QEMU_CAPS_ICH9_USB_EHCI1,
982648
-            QEMU_CAPS_SPICE,
982648
-            QEMU_CAPS_DEVICE_QXL,
982648
-            QEMU_CAPS_HDA_DUPLEX, QEMU_CAPS_USB_REDIR,
982648
             QEMU_CAPS_OBJECT_MEMORY_FILE);
982648
     DO_TEST("hugepages-numa-default-dimm",
982648
             QEMU_CAPS_DEVICE_PC_DIMM,
982648
-- 
982648
2.18.0
982648