From: Keir Fraser Subject: Re: Xen debugging question (x86-64) Date: Thu, 12 May 2005 11:26:10 +0100 Message-ID: References: <1115892770.5086.26.camel@thinkpad> Return-path: In-Reply-To: Your message of "Thu, 12 May 2005 05:12:50 CDT." <1115892770.5086.26.camel@thinkpad> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jerone Young Cc: xen-devel List-Id: xen-devel@lists.xenproject.org A spontaneous reboot with no error output is almost certainly a triple fault. Since we have a double fault handler that should trigger on ring-0 stack overflow, the cause is very likely that you have written an invalid pagetable base into %cr3. If you do this then even the double-fault handler is inaccessible and you are toast. I'd add tracing to write_cr3() in Xen, perhaps gated on current->domain->id == 1, and I would check that the new domain's page tables has the Xen mappings correctly copied into the Xen reserved area in the PML4. -- Keir > Hey guys, > I have the x86-64 domU building code for libxc just about ready. It > totally gets through the library and creates the domain. But once it > does it reboots the machine (and no output to show what happened via the > serial console). What techniques would you guys use find out (excluding > excessive printks ....I'm doing that right now) what is going on in xen > and tracing back to the problem in this situation? > -- > Jerone Young > IBM Linux Technology Center > jyoung5@us.ibm.com > 512-838-1157 (T/L: 678-1157) > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel >