[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] Different esps

  • To: Xen list <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
  • From: Jacob Gorm Hansen <jacob@xxxxxxxx>
  • Date: Tue, 20 Jan 2004 12:11:34 +0100
  • Delivery-date: Tue, 20 Jan 2004 11:12:46 +0000
  • List-id: List for Xen developers <xen-devel.lists.sourceforge.net>


I am trying to make sense of the various stack-pointers within Xen. My
problem is that my newly created domain gets killed, apparently because
Xen cannot write the stack when returning to the domain. I am not sure
which stack pointer Xen is using for the faulting write though.

I am looking at two different esp values, the ones printed by the printf

execution_context_t ctxt;
memcpy(&ctxt, get_execution_context(),sizeof(execution_context_t));

printk("esp1 %08lx %08lx\n",ctxt.esp, current->thread.esp1);

What is the difference between these two stacks, and what is the
recommended way of reading and setting their values from within the
unprivileged domain?


The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.