render / rpms / libvirt

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