From: "Dave Pacheco" Subject: Re: Setting up page directories and tables Date: Fri, 27 Apr 2007 20:56:12 -0400 Message-ID: <2d88d46a0704271756t3968218h9f992ff495a6d48c@mail.gmail.com> References: <2d88d46a0704271311m4f41aa6bna46cc903bb619f32@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0434227720==" Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Joel Weinberger , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --===============0434227720== Content-Type: multipart/alternative; boundary="----=_Part_24409_4592774.1177721772764" ------=_Part_24409_4592774.1177721772764 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/27/07, Keir Fraser wrote: > > On 27/4/07 21:11, "Dave Pacheco" wrote: > > All of these steps succeed (the hypercall returns 0, and the argument > indicating how many updates succeeded is 1 in both cases). But later, when > switching into the context of this process, I try to update the user base > pointer with > > HYPERVISOR_mmuext_op({MMUEXT_NEW_USER_BASEPTR, mfn of P}...). > > > Only x86/64 has a separate USER_BASEPTR. You want to use just > MMUEXT_NEW_BASEPTR. > When I use that, the domain immediately crashes. I would have expected a page fault, since the page tables aren't actually set up yet, but I don't even get that. (It's possible that it faulted again trying to load the fault handler.) /var/log/xen/xend.log doesn't say much useful, other than that the domain crashed. Is there a way to tell why a domain crashed (i.e. executing an illegal instruction, or triple fault, or something like that)? Thanks, Dave ------=_Part_24409_4592774.1177721772764 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/27/07, Keir Fraser <Keir.Fraser@cl.cam.ac.uk> wrote:
On 27/4/07 21:11, "Dave Pacheco" < dap@cs.brown.edu> wrote:

All of these steps succeed (the hypercall returns 0, and the argument indicating how many updates succeeded is 1 in both cases). But later, when switching into the context of this process, I try to update the user base pointer with

 HYPERVISOR_mmuext_op({MMUEXT_NEW_USER_BASEPTR, mfn of P}...).

Only x86/64 has a separate USER_BASEPTR. You want to use just MMUEXT_NEW_BASEPTR.

When I use that, the domain immediately crashes. I would have expected a page fault, since the page tables aren't actually set up yet, but I don't even get that. (It's possible that it faulted again trying to load the fault handler.)

/var/log/xen/xend.log doesn't say much useful, other than that the domain crashed. Is there a way to tell why a domain crashed (i.e. executing an illegal instruction, or triple fault, or something like that)?

Thanks,
Dave
------=_Part_24409_4592774.1177721772764-- --===============0434227720== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0434227720==--