Re: [Xen-devel] Question about Xen reboot on panic

2015-11-18 Thread Jan Beulich
>>> On 19.11.15 at 04:58, wrote: > I will come back when I experience the reboot issue on Xen master. > But I still think that Xen should reboot even when the other parts of > Xen (not the reboot logic) has a bug. Maybe I'm wrong? No, that's a perfectly valid expectation. Just that what you propo

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-18 Thread Meng Xu
2015-11-13 2:39 GMT-05:00 Jan Beulich : On 12.11.15 at 20:54, wrote: >> However, the line after that if statement is: >> smp_send_stop(); >> >> which is not in the if ( get_apic_id() != boot_cpu_physical_apicid ) >> statement. >> >> So P0 may run this code, and from what I read from this >> s

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 20:54, wrote: > However, the line after that if statement is: > smp_send_stop(); > > which is not in the if ( get_apic_id() != boot_cpu_physical_apicid ) > statement. > > So P0 may run this code, and from what I read from this > smp_send_stop(), it has the following code: >

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Jan, 2015-11-12 12:08 GMT-05:00 Jan Beulich : On 12.11.15 at 17:57, wrote: >>> After looking into the code, I found the following code in the >>> machine_restart(), which is quite suspicious. >>> >>> if ( system_state >= SYS_STATE_smp_boot ) >>> >>> { >>> >>> local_irq_ena

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Jan Beulich
>>> On 12.11.15 at 17:57, wrote: >> After looking into the code, I found the following code in the >> machine_restart(), which is quite suspicious. >> >> if ( system_state >= SYS_STATE_smp_boot ) >> >> { >> >> local_irq_enable(); >> >> >> /* Ensure we are the boot CPU. */ >

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
I think the machine_restart() may have a bug. :-( 2015-11-12 11:13 GMT-05:00 Meng Xu : > Hi Andrew, > > I thought I might find where the system got stuck. > > As you suggested, I add several printks inside machine_restart(); > If the machine restart when Xen kernel crashes, I can see the following

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Andrew, I thought I might find where the system got stuck. As you suggested, I add several printks inside machine_restart(); If the machine restart when Xen kernel crashes, I can see the following output: umount: /run/lock: not mounted umount: /run/shm: not mounted

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Ian and Wei, 2015-11-12 8:16 GMT-05:00 Ian Campbell : > On Thu, 2015-11-12 at 12:57 +, Wei Liu wrote: >> On Thu, Nov 12, 2015 at 12:52:56PM +, Andrew Cooper wrote: >> > >> > In screen for example, you need to send CTRL-a a to send a "CTRL-a" on >> > the serial. >> > >> >> And for minico

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Meng Xu
Hi Andrew, 2015-11-12 7:52 GMT-05:00 Andrew Cooper : > On 12/11/15 02:10, Meng Xu wrote: >> Hi Andrew, >> >> 2015-11-11 18:34 GMT-05:00 Andrew Cooper : >>> On 11/11/2015 23:21, Meng Xu wrote: > Finally, I can't tell from your paste below, but ensure that you are > always using a debug hype

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Ian Campbell
On Thu, 2015-11-12 at 12:57 +, Wei Liu wrote: > On Thu, Nov 12, 2015 at 12:52:56PM +, Andrew Cooper wrote: > >  > > In screen for example, you need to send CTRL-a a to send a "CTRL-a" on > > the serial. > > > > And for minicom it is "Ctrl-a Ctrl-a" to send "Ctrl-a". Now run minicom in sc

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Wei Liu
On Thu, Nov 12, 2015 at 12:52:56PM +, Andrew Cooper wrote: > On 12/11/15 02:10, Meng Xu wrote: > > Hi Andrew, > > > > 2015-11-11 18:34 GMT-05:00 Andrew Cooper : > >> On 11/11/2015 23:21, Meng Xu wrote: > Finally, I can't tell from your paste below, but ensure that you are > always usi

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-12 Thread Andrew Cooper
On 12/11/15 02:10, Meng Xu wrote: > Hi Andrew, > > 2015-11-11 18:34 GMT-05:00 Andrew Cooper : >> On 11/11/2015 23:21, Meng Xu wrote: Finally, I can't tell from your paste below, but ensure that you are always using a debug hypervisor. >>> The source file Config.mk under the xen folder has

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Meng Xu
Hi Andrew, 2015-11-11 18:34 GMT-05:00 Andrew Cooper : > On 11/11/2015 23:21, Meng Xu wrote: >> >>> Finally, I can't tell from your paste below, but ensure that you are >>> always using a debug hypervisor. >> The source file Config.mk under the xen folder has >> debug ?= y >> >> In addition, "xl d

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Andrew Cooper
On 11/11/2015 23:21, Meng Xu wrote: > >> Finally, I can't tell from your paste below, but ensure that you are >> always using a debug hypervisor. > The source file Config.mk under the xen folder has > debug ?= y > > In addition, "xl dmesg |grep debug" gives me: > > (XEN) Xen version 4.6-unstable (

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Meng Xu
Hi Andrew, First, thank you so much for your super fast reply! I really appreciate it. :-) 2015-11-11 17:54 GMT-05:00 Andrew Cooper : > On 11/11/2015 22:49, Meng Xu wrote: >> Hi all, >> >> I'm trying to work remotely with the machine I have. So I want Xen >> automatically reboot if it experiences

Re: [Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Andrew Cooper
On 11/11/2015 22:49, Meng Xu wrote: > Hi all, > > I'm trying to work remotely with the machine I have. So I want Xen > automatically reboot if it experiences a panic. > > When Xen panic, it says " Reboot in five seconds...". However, it does > not reboot. :-( > > *** The xen boot command line on my

[Xen-devel] Question about Xen reboot on panic

2015-11-11 Thread Meng Xu
Hi all, I'm trying to work remotely with the machine I have. So I want Xen automatically reboot if it experiences a panic. When Xen panic, it says " Reboot in five seconds...". However, it does not reboot. :-( *** The xen boot command line on my machine is *** multiboot /boot/xen-4.6-unstable.