From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: [help] rsp in case of interrupt/exception in ring0 Date: Tue, 23 Feb 2010 19:39:57 -0800 Message-ID: <20100223193957.33c3e13e@mantra.us.oracle.com> 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.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Hi, can someone help me understand this. When a cpu is in hyp code and int/exception comes in, how/where is rsp saved? According to intel manual if there's no ring transition, then the cpu doesn't save ss/rsp. Following trail from entry.S to show_registers(), I don't see where regs->rsp is loaded, yet show_registers() displays it happily. show_stack() uses it. This also means that regs->rsp is actually going to prev frame where orig hyp function was executing. thanks, Mukesh