mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
tests: Update smm=on test
Use DO_TEST_CAPS_LATEST() instead of hardcoding capabilities and add the xml2xml part, which was missing; finally, rename it to accomodate the complementary smm=off test that we're about to introduce. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
74bb510a7b
commit
dd3258da09
@ -6,14 +6,15 @@ LOGNAME=test \
|
|||||||
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
XDG_DATA_HOME=/tmp/lib/domain--1-QEMUGuest1/.local/share \
|
||||||
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
XDG_CACHE_HOME=/tmp/lib/domain--1-QEMUGuest1/.cache \
|
||||||
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
XDG_CONFIG_HOME=/tmp/lib/domain--1-QEMUGuest1/.config \
|
||||||
QEMU_AUDIO_DRV=none \
|
|
||||||
/usr/bin/qemu-system-x86_64 \
|
/usr/bin/qemu-system-x86_64 \
|
||||||
-name guest=QEMUGuest1,debug-threads=on \
|
-name guest=QEMUGuest1,debug-threads=on \
|
||||||
-S \
|
-S \
|
||||||
-object secret,id=masterKey0,format=raw,file=/tmp/lib/domain--1-QEMUGuest1/master-key.aes \
|
-object '{"qom-type":"secret","id":"masterKey0","format":"raw","file":"/tmp/lib/domain--1-QEMUGuest1/master-key.aes"}' \
|
||||||
-machine q35,usb=off,smm=on,dump-guest-core=off \
|
-machine q35,usb=off,smm=on,dump-guest-core=off,memory-backend=pc.ram \
|
||||||
-accel tcg \
|
-accel tcg \
|
||||||
|
-cpu qemu64 \
|
||||||
-m 214 \
|
-m 214 \
|
||||||
|
-object '{"qom-type":"memory-backend-ram","id":"pc.ram","size":224395264}' \
|
||||||
-overcommit mem-lock=off \
|
-overcommit mem-lock=off \
|
||||||
-smp 1,sockets=1,cores=1,threads=1 \
|
-smp 1,sockets=1,cores=1,threads=1 \
|
||||||
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
-uuid c7a5fdbd-edaf-9455-926a-d65c16db1809 \
|
||||||
@ -26,11 +27,6 @@ QEMU_AUDIO_DRV=none \
|
|||||||
-no-shutdown \
|
-no-shutdown \
|
||||||
-no-acpi \
|
-no-acpi \
|
||||||
-boot strict=on \
|
-boot strict=on \
|
||||||
-device i82801b11-bridge,id=pci.1,bus=pcie.0,addr=0x1e \
|
-audiodev '{"id":"audio1","driver":"none"}' \
|
||||||
-device pci-bridge,chassis_nr=2,id=pci.2,bus=pci.1,addr=0x0 \
|
-sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny \
|
||||||
-device ioh3420,port=8,chassis=3,id=pci.3,bus=pcie.0,addr=0x1 \
|
|
||||||
-device virtio-scsi-pci,id=scsi0,bus=pci.2,addr=0x1 \
|
|
||||||
-drive file=/dev/HostVG/QEMUGuest1,format=raw,if=none,id=drive-scsi0-0-0-0 \
|
|
||||||
-device scsi-hd,bus=scsi0.0,channel=0,scsi-id=0,lun=0,drive=drive-scsi0-0-0-0,id=scsi0-0-0-0,bootindex=1 \
|
|
||||||
-device virtio-balloon-pci,id=balloon0,bus=pci.2,addr=0x2 \
|
|
||||||
-msg timestamp=on
|
-msg timestamp=on
|
17
tests/qemuxml2argvdata/machine-smm-on.xml
Normal file
17
tests/qemuxml2argvdata/machine-smm-on.xml
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory unit='KiB'>219100</memory>
|
||||||
|
<vcpu placement='static'>1</vcpu>
|
||||||
|
<os>
|
||||||
|
<type arch='x86_64' machine='q35'>hvm</type>
|
||||||
|
</os>
|
||||||
|
<features>
|
||||||
|
<smm state='on'/>
|
||||||
|
</features>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
||||||
|
<controller type='usb' model='none'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -1061,12 +1061,7 @@ mymain(void)
|
|||||||
driver.config->dumpGuestCore = true;
|
driver.config->dumpGuestCore = true;
|
||||||
DO_TEST_NOCAPS("machine-core-off");
|
DO_TEST_NOCAPS("machine-core-off");
|
||||||
driver.config->dumpGuestCore = false;
|
driver.config->dumpGuestCore = false;
|
||||||
DO_TEST("machine-smm-opt",
|
DO_TEST_CAPS_LATEST("machine-smm-on");
|
||||||
QEMU_CAPS_DEVICE_DMI_TO_PCI_BRIDGE,
|
|
||||||
QEMU_CAPS_DEVICE_PCI_BRIDGE,
|
|
||||||
QEMU_CAPS_DEVICE_IOH3420,
|
|
||||||
QEMU_CAPS_ICH9_AHCI,
|
|
||||||
QEMU_CAPS_VIRTIO_SCSI);
|
|
||||||
DO_TEST("machine-vmport-opt",
|
DO_TEST("machine-vmport-opt",
|
||||||
QEMU_CAPS_MACHINE_VMPORT_OPT);
|
QEMU_CAPS_MACHINE_VMPORT_OPT);
|
||||||
DO_TEST_NOCAPS("default-kvm-host-arch");
|
DO_TEST_NOCAPS("default-kvm-host-arch");
|
||||||
|
@ -11,18 +11,23 @@
|
|||||||
<features>
|
<features>
|
||||||
<smm state='on'/>
|
<smm state='on'/>
|
||||||
</features>
|
</features>
|
||||||
|
<cpu mode='custom' match='exact' check='none'>
|
||||||
|
<model fallback='forbid'>qemu64</model>
|
||||||
|
</cpu>
|
||||||
<clock offset='utc'/>
|
<clock offset='utc'/>
|
||||||
<on_poweroff>destroy</on_poweroff>
|
<on_poweroff>destroy</on_poweroff>
|
||||||
<on_reboot>restart</on_reboot>
|
<on_reboot>restart</on_reboot>
|
||||||
<on_crash>destroy</on_crash>
|
<on_crash>destroy</on_crash>
|
||||||
<devices>
|
<devices>
|
||||||
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
<emulator>/usr/bin/qemu-system-x86_64</emulator>
|
||||||
<disk type='block' device='disk'>
|
<controller type='usb' index='0' model='none'/>
|
||||||
<source dev='/dev/HostVG/QEMUGuest1'/>
|
<controller type='sata' index='0'>
|
||||||
<target dev='sda' bus='scsi'/>
|
<address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
|
||||||
<address type='drive' controller='0' bus='0' target='0' unit='0'/>
|
</controller>
|
||||||
</disk>
|
<controller type='pci' index='0' model='pcie-root'/>
|
||||||
<controller type='scsi' index='0'/>
|
<input type='mouse' bus='ps2'/>
|
||||||
<memballoon model='virtio'/>
|
<input type='keyboard' bus='ps2'/>
|
||||||
|
<audio id='1' type='none'/>
|
||||||
|
<memballoon model='none'/>
|
||||||
</devices>
|
</devices>
|
||||||
</domain>
|
</domain>
|
@ -243,6 +243,7 @@ mymain(void)
|
|||||||
DO_TEST_CAPS_LATEST("genid-auto");
|
DO_TEST_CAPS_LATEST("genid-auto");
|
||||||
DO_TEST_NOCAPS("machine-core-on");
|
DO_TEST_NOCAPS("machine-core-on");
|
||||||
DO_TEST_NOCAPS("machine-core-off");
|
DO_TEST_NOCAPS("machine-core-off");
|
||||||
|
DO_TEST_CAPS_LATEST("machine-smm-on");
|
||||||
DO_TEST("machine-loadparm-multiple-disks-nets-s390", QEMU_CAPS_CCW);
|
DO_TEST("machine-loadparm-multiple-disks-nets-s390", QEMU_CAPS_CCW);
|
||||||
DO_TEST_NOCAPS("default-kvm-host-arch");
|
DO_TEST_NOCAPS("default-kvm-host-arch");
|
||||||
DO_TEST_NOCAPS("default-qemu-host-arch");
|
DO_TEST_NOCAPS("default-qemu-host-arch");
|
||||||
|
Loading…
Reference in New Issue
Block a user