WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Different esps

To: Xen list <xen-devel@xxxxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] Different esps
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
Envelope-to: steven.hand@xxxxxxxxxxxx
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
hi,

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
below:

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?

thanks,
Jacob



-------------------------------------------------------
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.
http://www.eclipsecon.org/osdn
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>