libvirt/src/libxl
Jim Fehlig da4b0fd9d3 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>
2018-11-06 09:10:27 -07:00
..
libvirtd_libxl.aug libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_capabilities.c cpu: Drop unused parameter from cpuDecode 2017-10-16 09:21:52 +02:00
libxl_capabilities.h libxl: implement connectGetDomainCapabilities 2016-06-13 14:13:17 -06:00
libxl_conf.c libxl: prefer new location of nested_hvm in libxl_domain_build_info 2018-09-24 21:33:10 -06:00
libxl_conf.h libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
libxl_domain.c libxl: add support for soft reset 2018-11-06 09:10:27 -07:00
libxl_domain.h libxl: join with thread receiving migration data 2018-09-11 09:20:17 -06:00
libxl_driver.c libxl: drop support for Xen < 4.6 2018-09-14 11:47:08 -06:00
libxl_driver.h libxl: Use standard format for source file copyright notice 2013-09-03 23:53:48 -06:00
libxl_logger.c src: More cleanup of some system headers already contained in internal.h 2018-09-20 10:16:39 +02:00
libxl_logger.h libxl: define a per-domain logger. 2017-01-11 09:32:47 +01:00
libxl_migration.c libxl: Fix possible object refcnt issue 2018-10-01 14:27:18 -04:00
libxl_migration.h libxl: rename migration APIs to include Src or Dst in their name 2018-03-21 12:59:31 -06:00
libxl.conf libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00
Makefile.inc.am make: split libxl driver build rules into libxl/Makefile.inc.am 2018-02-23 13:14:26 +00:00
test_libvirtd_libxl.aug.in libxl: do not enable nested HVM unless global nested_hvm option enabled 2018-04-17 21:15:27 -06:00