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

Re: [Xen-devel] xc_vcpu_setcontext problem with translated shadow pageta

To: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Subject: Re: [Xen-devel] xc_vcpu_setcontext problem with translated shadow pagetable domains
From: "Tim Wood" <twwood@xxxxxxxxx>
Date: Mon, 20 Nov 2006 19:57:04 -0500
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 20 Nov 2006 16:57:10 -0800
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VWBIbeFsow6DAnmrR+mE0ztSYHywM8g1CXjpEQohlh+xBGtnhbZAuBzdfNpGEw6sB2g1uVCbsx+7ESpT3MLvmGxXvsDjK73d7fUpF4skSePcQtOj58NtGN5TMwOk6P5bPvMeJjhdTTeEXc9QXJySnfb7Q2aWyE1v+Uyas2+ROHM=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <8A87A9A84C201449A0C56B728ACF491E01F908@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <9c92ada10611201608k5fed5040h669b361e8844f808@xxxxxxxxxxxxxx> <8A87A9A84C201449A0C56B728ACF491E01F908@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On 11/20/06, Ian Pratt <m+Ian.Pratt@xxxxxxxxxxxx> wrote:

> I'm working on save/restore for (non hvm) domains with the
> auto_translated_physmap feature enabled.  I've based my code roughly
> off of a patch to provide save/restore support for HVM domains, but
> I'm running into problems when I try to restore a domain.
>
> My call to xc_vcpu_setcontext() is failing during restoration -- is
> there anything unusual about context structs for these types of
> domains?

Are you getting the restore domain into the right shadow pagetable mode?


I can see that when I restore the domain it is aware that the
"auto_translated_physmap" feature is being used, so I am assuming that
will result in the selection of the correct shadow page table mode.
I'll try to look and see whether that is actually happening.


Otherwise things like the pagetable base will be invalid (you don't need
to canonical-ize it on save as its already in gpfn form).

Ian




Right -- I'm just copying the page table/memory contents directly
without canonicalizing (a nice benefit of using shadows!).

Thanks
- Tim

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel