|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] [PATCH 11/11] xen/hvm kdump: reset PV devices in crash k
On Thu, 28 Jul 2011, Olaf Hering wrote:
> (this is actually a forward port of rev 1079 from 2.6.18.hg, untested because
> kdump just hangs before (or while) entering the crash kernel in 3.0)
>
> 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.
>
> With this change all frontend devices with state XenbusStateConnected
> 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@xxxxxxxxx>
>
> ---
> drivers/xen/xenbus/xenbus_comms.c | 4 -
> drivers/xen/xenbus/xenbus_probe_frontend.c | 97
> +++++++++++++++++++++++++++++
> 2 files changed, 100 insertions(+), 1 deletion(-)
>
> Index: linux-3.0/drivers/xen/xenbus/xenbus_comms.c
> ===================================================================
> --- linux-3.0.orig/drivers/xen/xenbus/xenbus_comms.c
> +++ linux-3.0/drivers/xen/xenbus/xenbus_comms.c
> @@ -212,7 +212,9 @@ int xb_init_comms(void)
> printk(KERN_WARNING "XENBUS response ring is not quiescent "
> "(%08x:%08x): fixing up\n",
> intf->rsp_cons, intf->rsp_prod);
> - intf->rsp_cons = intf->rsp_prod;
> + /* breaks kdump */
> + if (!reset_devices)
> + intf->rsp_cons = intf->rsp_prod;
> }
Where is reset_devices coming from?
I hope is set only on a kexec reboot.
Considering that all the other patches in this series follow the
opposite strategy, that is closing stuff on shutdown, why are you trying
to close xenbus connections on boot here?
At this point I would rather be coherent and simply switch to
XenbusStateClosing or XenbusStateClosed in the shutdown path if
kexec_is_loaded.
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- Re: [Xen-devel] [PATCH 05/11] xen/hvm kexec: unregister debugirq during reboot, (continued)
- [Xen-devel] [PATCH 04/11] xen/hvm kexec: unregister timer interrupt during reboot, Olaf Hering
- [Xen-devel] [PATCH 02/11] xen: remove BUG_ON from xen_teardown_timer, Olaf Hering
- [Xen-devel] [PATCH 08/11] xen/hvm kexec: unregister the watch of the "backend" node during reboot, Olaf Hering
- [Xen-devel] [PATCH 07/11] xen/hvm kexec: unregister memory/target watch in xen-balloon.c, Olaf Hering
- [Xen-devel] [PATCH 01/11] kexec: add kexec_is_loaded function, Olaf Hering
- [Xen-devel] [PATCH 10/11] xen kexec: reset device state to Initializing during reboot, Olaf Hering
- [Xen-devel] [PATCH 11/11] xen/hvm kdump: reset PV devices in crash kernel, Olaf Hering
- Re: [Xen-devel] [PATCH 11/11] xen/hvm kdump: reset PV devices in crash kernel,
Stefano Stabellini <=
- [Xen-devel] [PATCH 09/11] xen/hvm kexec: unregister the watch of the "device" node during reboot, Olaf Hering
- Re: [Xen-devel] [PATCH 00/11] [v2] misc changes for kexec in pv-on-hvm guests, Keir Fraser
- Re: [Xen-devel] [PATCH 00/11] [v2] misc changes for kexec in pv-on-hvm guests, Konrad Rzeszutek Wilk
|
|
|
|
|