diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 8db8b52b25..cfd3451800 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -1687,14 +1687,20 @@ qemu-kvm -net nic,model=? /dev/null
  • 'poweroff' — forcefully power off the guest
  • 'pause' — pause the guest
  • 'none' — do nothing
  • +
  • 'dump' — automatically dump the guest + Since 0.8.7
  • - Note that the 'shutdown' action requires that the guest + Note 1: the 'shutdown' action requires that the guest is responsive to ACPI signals. In the sort of situations where the watchdog has expired, guests are usually unable to respond to ACPI signals. Therefore using 'shutdown' is not recommended.

    +

    + Note 2: the directory to save dump files can be configured + by auto_dump_path in file /etc/libvirt/qemu.conf. +

    diff --git a/docs/schemas/domain.rng b/docs/schemas/domain.rng index 51aae14791..eee9864106 100644 --- a/docs/schemas/domain.rng +++ b/docs/schemas/domain.rng @@ -1505,6 +1505,7 @@ poweroff pause none + dump diff --git a/tests/qemuxml2argvdata/qemuxml2argv-watchdog-dump.args b/tests/qemuxml2argvdata/qemuxml2argv-watchdog-dump.args new file mode 100644 index 0000000000..50b26f81a3 --- /dev/null +++ b/tests/qemuxml2argvdata/qemuxml2argv-watchdog-dump.args @@ -0,0 +1 @@ +LC_ALL=C PATH=/bin HOME=/home/test USER=test LOGNAME=test /usr/bin/qemu -S -M pc -m 214 -smp 1 -nographic -monitor unix:/tmp/test-monitor,server,nowait -no-acpi -boot c -hda /dev/HostVG/QEMUGuest1 -net none -serial none -parallel none -usb -watchdog ib700 -watchdog-action pause diff --git a/tests/qemuxml2argvdata/qemuxml2argv-watchdog-dump.xml b/tests/qemuxml2argvdata/qemuxml2argv-watchdog-dump.xml new file mode 100644 index 0000000000..4314ec4429 --- /dev/null +++ b/tests/qemuxml2argvdata/qemuxml2argv-watchdog-dump.xml @@ -0,0 +1,26 @@ + + QEMUGuest1 + c7a5fdbd-edaf-9455-926a-d65c16db1809 + 219200 + 219200 + 1 + + hvm + + + + destroy + restart + destroy + + /usr/bin/qemu + + + +
    + + + + + + diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c index e1f4e04b21..db2d00657f 100644 --- a/tests/qemuxml2argvtest.c +++ b/tests/qemuxml2argvtest.c @@ -405,6 +405,7 @@ mymain(int argc, char **argv) DO_TEST("watchdog", 0, false); DO_TEST("watchdog-device", QEMUD_CMD_FLAG_DEVICE | QEMUD_CMD_FLAG_NODEFCONFIG, false); + DO_TEST("watchdog-dump", 0, false); DO_TEST("balloon-device", QEMUD_CMD_FLAG_DEVICE | QEMUD_CMD_FLAG_NODEFCONFIG, false); DO_TEST("balloon-device-auto", QEMUD_CMD_FLAG_DEVICE |