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: "Tim Wood" <twwood@xxxxxxxxx>, "Xen Devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] xc_vcpu_setcontext problem with translated shadow pagetable domains
From: "Ian Pratt" <m+Ian.Pratt@xxxxxxxxxxxx>
Date: Wed, 22 Nov 2006 01:22:12 -0000
Delivery-date: Tue, 21 Nov 2006 17:22:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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> <9c92ada10611201657h2ff7c37an1080dafb328bc859@xxxxxxxxxxxxxx> <9c92ada10611211050k1f865403w2f0ae7783086b72a@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AccNnfj6lMqM1KZxQW2qiJWqtNDBbwANo+bQ
Thread-topic: [Xen-devel] xc_vcpu_setcontext problem with translated shadow pagetable domains
> > 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.
> 
> You are right (as usual) -- the restored domains return false for
> shadow_mode_translate() so they are not using shadow mode like they
> should.  As a result the set_gdt function is dying since gmfn_to_mfn()
> returns bad values.  Any pointers to where this mode is typically
> enabled on domain startup?

See the following code in xc_linux_build.c :

963         if ( xc_shadow_control(xc_handle, dom,
964
XEN_DOMCTL_SHADOW_OP_ENABLE_TRANSLATE,
965                                NULL, 0, NULL, 0, NULL) < 0 )
966         {
967             PERROR("Could not enable translation mode");
968             goto error_out;
969         }

 
Ian

> The output from the restore function in libxc shows that when it reads
> in the configuration file from the saved location it knows that the
> auto_translated_physmap feature is enabled for the domain, but I guess
> it is not acting on that to correctly enable shadow mode.
> 
> thanks
> -Tim

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