Re: [PATCH 3/3] deal with guest panicked event

2012-06-13 Thread Wen Congyang
At 06/13/2012 03:53 PM, Paolo Bonzini Wrote: > Il 13/06/2012 09:02, Wen Congyang ha scritto: >> +Other possible actions are: >> +@code{pause} (emit QEVENT_GUEST_PANICKED and pause VM), >> +@code{quit} (emit QEVENT_GUEST_PANICKED and quit VM). Rather than just "quit", there sho

Re: [PATCH 3/3] deal with guest panicked event

2012-06-13 Thread Paolo Bonzini
Il 13/06/2012 09:02, Wen Congyang ha scritto: >>> >> +Other possible actions are: >>> >> +@code{pause} (emit QEVENT_GUEST_PANICKED and pause VM), >>> >> +@code{quit} (emit QEVENT_GUEST_PANICKED and quit VM). >> > >> > Rather than just "quit", there should be choices for "shutdown", >> > "poweroff"

Re: [PATCH 3/3] deal with guest panicked event

2012-06-13 Thread Wen Congyang
At 06/12/2012 09:29 PM, Paolo Bonzini Wrote: > Il 21/05/2012 08:50, Wen Congyang ha scritto: >> +DEF("onpanic", HAS_ARG, QEMU_OPTION_onpanic, \ >> +"-onpanic report|pause|quit\n" \ >> +"action when the guest is panicked [default=report]", >> +QEMU_ARCH_ALL) >> +STEXI >>

Re: [PATCH 3/3] deal with guest panicked event

2012-06-12 Thread Paolo Bonzini
Il 21/05/2012 08:50, Wen Congyang ha scritto: > +DEF("onpanic", HAS_ARG, QEMU_OPTION_onpanic, \ > +"-onpanic report|pause|quit\n" \ > +"action when the guest is panicked [default=report]", > +QEMU_ARCH_ALL) > +STEXI > +@item -onpanic @var{action} > + > +The @var{action}

Re: [Qemu-devel] [PATCH 3/3] deal with guest panicked event

2012-06-12 Thread Luiz Capitulino
On Tue, 12 Jun 2012 13:40:45 +0100 "Daniel P. Berrange" wrote: > On Tue, Jun 12, 2012 at 09:35:04AM -0300, Luiz Capitulino wrote: > > On Tue, 12 Jun 2012 14:55:37 +0800 > > Wen Congyang wrote: > > > > > >> +static void panicked_perform_action(void) > > > >> +{ > > > >> +switch(panicked_acti

Re: [Qemu-devel] [PATCH 3/3] deal with guest panicked event

2012-06-12 Thread Daniel P. Berrange
On Tue, Jun 12, 2012 at 09:35:04AM -0300, Luiz Capitulino wrote: > On Tue, 12 Jun 2012 14:55:37 +0800 > Wen Congyang wrote: > > > >> +static void panicked_perform_action(void) > > >> +{ > > >> +switch(panicked_action) { > > >> +case PANICKED_REPORT: > > >> +panicked_mon_event("rep

Re: [Qemu-devel] [PATCH 3/3] deal with guest panicked event

2012-06-12 Thread Luiz Capitulino
On Tue, 12 Jun 2012 14:55:37 +0800 Wen Congyang wrote: > >> +static void panicked_perform_action(void) > >> +{ > >> +switch(panicked_action) { > >> +case PANICKED_REPORT: > >> +panicked_mon_event("report"); > >> +break; > >> + > >> +case PANICKED_PAUSE: > >> +p

Re: [Qemu-devel] [PATCH 3/3] deal with guest panicked event

2012-06-11 Thread Wen Congyang
At 05/31/2012 03:23 AM, Luiz Capitulino Wrote: > On Mon, 21 May 2012 14:50:51 +0800 > Wen Congyang wrote: > >> When the guest is panicked, it will write 0x1 to the port 0x505. So if >> qemu reads 0x1 from this port, we can do the folloing three things >> according to the parameter -onpanic: >> 1.

Re: [Qemu-devel] [PATCH 3/3] deal with guest panicked event

2012-05-30 Thread Luiz Capitulino
On Mon, 21 May 2012 14:50:51 +0800 Wen Congyang wrote: > When the guest is panicked, it will write 0x1 to the port 0x505. So if > qemu reads 0x1 from this port, we can do the folloing three things > according to the parameter -onpanic: > 1. emit QEVENT_GUEST_PANICKED only > 2. emit QEVENT_GUEST_P

Re: [PATCH 3/3] deal with guest panicked event

2012-05-22 Thread Jan Kiszka
On 2012-05-21 03:50, Wen Congyang wrote: > When the guest is panicked, it will write 0x1 to the port 0x505. So if > qemu reads 0x1 from this port, we can do the folloing three things > according to the parameter -onpanic: > 1. emit QEVENT_GUEST_PANICKED only > 2. emit QEVENT_GUEST_PANICKED and paus

[PATCH 3/3] deal with guest panicked event

2012-05-20 Thread Wen Congyang
When the guest is panicked, it will write 0x1 to the port 0x505. So if qemu reads 0x1 from this port, we can do the folloing three things according to the parameter -onpanic: 1. emit QEVENT_GUEST_PANICKED only 2. emit QEVENT_GUEST_PANICKED and pause VM 3. emit QEVENT_GUEST_PANICKED and quit VM Not