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

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