render / rpms / libvirt

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