From mboxrd@z Thu Jan 1 00:00:00 1970 From: Meng Xu Subject: Question about Xen reboot on panic Date: Wed, 11 Nov 2015 17:49:10 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "xen-devel@lists.xen.org" Cc: Wei Liu List-Id: xen-devel@lists.xenproject.org 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.gz placeholder dom0_mem=8192M,max:8192M dom0_max_vcpus=8 sched=credit com1=115200,8n1,pci console=com1,vga reboot=k panic=2 panic_on_oops=1 *** The dom0's boot command line on my machine is *** module /boot/vmlinuz-3.8.0-44-generic placeholder root=/dev/sda5 ro panic=10 panic_on_oops=1 console=hvc0,115200n8 earlyprintk=xen quiet splash I'm actually not quite sure if I should add "reboot=k panic=2 panic_on_oops=1" into both command lines. But if I remove them, Xen still won't reboot on some panic. For example, if I boot into modified RTDS scheduler on Xen 4.6 unstable, it experiences panic as follows: (XEN) Xen call trace: (XEN) [] rt_vcpu_remove+0x87/0xf9 (XEN) [] sched_destroy_vcpu+0x98/0xed (XEN) [] complete_domain_destroy+0x52/0x17f (XEN) [] rcu_process_callbacks+0x149/0x1a6 (XEN) [] __do_softirq+0x133/0x147 (XEN) [] process_pending_softirqs+0x38/0x3a (XEN) [] mwait_idle+0x10a/0x2fb (XEN) [] idle_loop+0x51/0x6b (XEN) (XEN) (XEN) **************************************** (XEN) Panic on CPU 5: (XEN) GENERAL PROTECTION FAULT (XEN) [error_code=0000] (XEN) **************************************** (XEN) (XEN) Reboot in five seconds... ***It says "Reboot in five seconds", but I want for 1 min and nothing happened. :-( Did anyone happen to know why Xen does not reboot under this situation? (Xen could reboot if it fails on an ASSERT()) Thank you very much for your time and help! Best regards, Meng ----------- Meng Xu PhD Student in Computer and Information Science University of Pennsylvania http://www.cis.upenn.edu/~mengxu/