]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: add support for hv_crash feature as a panic device
authorDmitry Andreev <dandreev@virtuozzo.com>
Tue, 24 Nov 2015 12:26:33 +0000 (15:26 +0300)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 25 Nov 2015 13:46:20 +0000 (14:46 +0100)
commitca6ddffe2cdb8ae33fdcdbc7e9cf2d3fbd144277
tree9c5d6b888b25e59121ee5c99f15737f54e951a23
parent5e8d2ebd7a4d0aa91639f66844b2ea59e339e580
qemu: add support for hv_crash feature as a panic device

Panic device type used depends on 'model' attribute.

If no model is specified then device type depends on hypervisor
and guest arch. 'pseries' model is used for pSeries guest and
'isa' model is used in other cases.

XML:
<devices>
  <panic model='hyperv'/>
</devices>

QEMU command line:
qemu -cpu <cpu_model>,hv_crash
12 files changed:
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
tests/qemuargv2xmltest.c
tests/qemuxml2argvdata/qemuxml2argv-hyperv-panic.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-panic-no-address.xml
tests/qemuxml2argvdata/qemuxml2argv-pseries-disk.xml
tests/qemuxml2argvdata/qemuxml2argv-pseries-nvram.xml
tests/qemuxml2argvtest.c
tests/qemuxml2xmloutdata/qemuxml2xmlout-panic.xml [new file with mode: 0644]
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-panic-missing.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-pseries-panic-no-address.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c