]> git.ipfire.org Git - thirdparty/libvirt.git/commit
libxl: add support for soft reset
authorJim Fehlig <jfehlig@suse.com>
Wed, 31 Oct 2018 17:03:37 +0000 (11:03 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 6 Nov 2018 16:10:27 +0000 (09:10 -0700)
commitda4b0fd9d3cdd117427e7e1981e8639bc859e844
tree5a6f486da741c51361b399b337a97a551948bc5b
parent82452a5d7f55c7698459728a3ee071402f43bb4d
libxl: add support for soft reset

The pvops Linux kernel implements machine_ops.crash_shutdown as

static void xen_hvm_crash_shutdown(struct pt_regs *regs)
{
        native_machine_crash_shutdown(regs);
        xen_reboot(SHUTDOWN_soft_reset);
}

but currently the libxl driver does not handle the soft reset
shutdown event. As a result, the guest domain never proceeds
past xen_reboot(), making it impossible for HVM domains to save
a crash dump using kexec.

This patch adds support for handling the soft reset event by
calling libxl_domain_soft_reset() and re-enabling domain death
events, which is similar to the xl tool handling of soft reset
shutdown event.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
src/libxl/libxl_domain.c