mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00:00
Test for the new watchdog model diag288
Adding a test for the new watchdog model diag288. Signed-off-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
This commit is contained in:
parent
b831c5b801
commit
366e31a6ef
@ -0,0 +1,8 @@
|
|||||||
|
LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test QEMU_AUDIO_DRV=none \
|
||||||
|
/usr/bin/qemu -S -M \
|
||||||
|
s390-virtio -m 214 -smp 1 -nographic -nodefconfig -nodefaults -chardev \
|
||||||
|
socket,id=charmonitor,path=/tmp/test-monitor,server,nowait -mon \
|
||||||
|
chardev=charmonitor,id=monitor,mode=readline -no-acpi \
|
||||||
|
-drive file=/dev/HostVG/QEMUGuest1,if=none,id=drive-virtio-disk0 \
|
||||||
|
-device virtio-blk-s390,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \
|
||||||
|
-device diag288,id=watchdog0 -watchdog-action inject-nmi
|
22
tests/qemuxml2argvdata/qemuxml2argv-watchdog-diag288.xml
Normal file
22
tests/qemuxml2argvdata/qemuxml2argv-watchdog-diag288.xml
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<domain type='qemu'>
|
||||||
|
<name>QEMUGuest1</name>
|
||||||
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
||||||
|
<memory>219100</memory>
|
||||||
|
<currentMemory>219100</currentMemory>
|
||||||
|
<os>
|
||||||
|
<type arch='s390x' machine='s390-virtio'>hvm</type>
|
||||||
|
</os>
|
||||||
|
<clock offset='utc'/>
|
||||||
|
<on_poweroff>destroy</on_poweroff>
|
||||||
|
<on_reboot>restart</on_reboot>
|
||||||
|
<on_crash>destroy</on_crash>
|
||||||
|
<devices>
|
||||||
|
<emulator>/usr/bin/qemu</emulator>
|
||||||
|
<disk type='block' device='disk'>
|
||||||
|
<source dev='/dev/HostVG/QEMUGuest1'/>
|
||||||
|
<target dev='hda' bus='virtio'/>
|
||||||
|
<boot order='1'/>
|
||||||
|
</disk>
|
||||||
|
<watchdog model='diag288' action='inject-nmi'/>
|
||||||
|
</devices>
|
||||||
|
</domain>
|
@ -1186,6 +1186,9 @@ mymain(void)
|
|||||||
DO_TEST("watchdog-device", QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
DO_TEST("watchdog-device", QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
||||||
DO_TEST("watchdog-dump", NONE);
|
DO_TEST("watchdog-dump", NONE);
|
||||||
DO_TEST("watchdog-injectnmi", NONE);
|
DO_TEST("watchdog-injectnmi", NONE);
|
||||||
|
DO_TEST("watchdog-diag288",
|
||||||
|
QEMU_CAPS_DEVICE, QEMU_CAPS_CHARDEV, QEMU_CAPS_NODEFCONFIG,
|
||||||
|
QEMU_CAPS_DRIVE, QEMU_CAPS_BOOTINDEX, QEMU_CAPS_VIRTIO_S390);
|
||||||
DO_TEST("balloon-device", QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
DO_TEST("balloon-device", QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
||||||
DO_TEST("balloon-device-auto",
|
DO_TEST("balloon-device-auto",
|
||||||
QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
QEMU_CAPS_DEVICE, QEMU_CAPS_NODEFCONFIG);
|
||||||
|
Loading…
Reference in New Issue
Block a user