Re: [Xen-devel] [PATCH] xen: initialize xen panic handler for PVHVM

2013-08-20 Thread Konrad Rzeszutek Wilk
On Mon, Aug 19, 2013 at 02:18:42PM +0800, Joe Jin wrote: > On 08/16/13 20:43, Konrad Rzeszutek Wilk wrote: > > Could you tell me what has been happening without this patch? > > Without this patch, Xen would not get pvhvm crash event, any config for > on_crash in guest configure file will not be tr

Re: [Xen-devel] [PATCH] xen: initialize xen panic handler for PVHVM

2013-08-18 Thread Joe Jin
On 08/16/13 20:43, Konrad Rzeszutek Wilk wrote: > Could you tell me what has been happening without this patch? Without this patch, Xen would not get pvhvm crash event, any config for on_crash in guest configure file will not be triggered. Thanks, Joe -- To unsubscribe from this list: send the l

Re: [PATCH] xen: initialize xen panic handler for PVHVM

2013-08-18 Thread vaughan
On 08/16/2013 08:43 PM, Konrad Rzeszutek Wilk wrote: > On Fri, Aug 16, 2013 at 04:10:56PM +0800, Vaughan Cao wrote: >> kernel use callback linked in panic_notifier_list to notice others when panic >> happens. >> NORET_TYPE void panic(const char * fmt, ...){ >> ... >> atomic_notifier_call_ch

Re: [PATCH] xen: initialize xen panic handler for PVHVM

2013-08-16 Thread Konrad Rzeszutek Wilk
On Fri, Aug 16, 2013 at 04:10:56PM +0800, Vaughan Cao wrote: > kernel use callback linked in panic_notifier_list to notice others when panic > happens. > NORET_TYPE void panic(const char * fmt, ...){ > ... > atomic_notifier_call_chain(&panic_notifier_list, 0, buf); > } > When xen aware this

[PATCH] xen: initialize xen panic handler for PVHVM

2013-08-16 Thread Vaughan Cao
kernel use callback linked in panic_notifier_list to notice others when panic happens. NORET_TYPE void panic(const char * fmt, ...){ ... atomic_notifier_call_chain(&panic_notifier_list, 0, buf); } When xen aware this, it will call xen_reboot(SHUTDOWN_crash) to send out an event with reason