linux/drivers/xen/xenbus
Olaf Hering 116df6f004 xen/pv-on-hvm kexec+kdump: reset PV devices in kexec or crash kernel
After triggering a crash dump in a HVM guest, the PV backend drivers
will remain in Connected state. When the kdump kernel starts the PV
drivers will skip such devices. As a result, no root device is found and
the vmcore cant be saved.

A similar situation happens after a kexec boot, here the devices will be
in the Closed state.

With this change all frontend devices with state XenbusStateConnected or
XenbusStateClosed will be reset by changing the state file to Closing ->
Closed -> Initializing.  This will trigger a disconnect in the backend
drivers. Now the frontend drivers will find the backend drivers in state
Initwait and can connect.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
[v2:
  - add timeout when waiting for backend state change
  (based on feedback from Ian Campell)
  - extent printk message to include backend string
  - add comment to fall-through case in xenbus_reset_frontend]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2011-09-01 11:49:03 -04:00
..
Makefile xen: add backend driver support 2011-01-05 16:29:58 -05:00
xenbus_client.c xenbus: Xen paravirtualised PCI hotplug support. 2010-10-18 10:49:35 -04:00
xenbus_comms.c xen/pv-on-hvm kexec+kdump: reset PV devices in kexec or crash kernel 2011-09-01 11:49:03 -04:00
xenbus_comms.h
xenbus_probe_backend.c xen/xenbus: fixup checkpatch issues in xenbus_probe* 2011-01-05 16:31:08 -05:00
xenbus_probe_frontend.c xen/pv-on-hvm kexec+kdump: reset PV devices in kexec or crash kernel 2011-09-01 11:49:03 -04:00
xenbus_probe.c xen: xenbus PM events support 2011-03-16 13:06:29 -04:00
xenbus_probe.h xen: xenbus PM events support 2011-03-16 13:06:29 -04:00
xenbus_xs.c xen/pv-on-hvm kexec: prevent crash in xenwatch_thread() when stale watch events arrive 2011-09-01 11:48:29 -04:00