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

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


  • To: "Xen Devel" <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Tim Wood" <twwood@xxxxxxxxx>
  • Date: Tue, 21 Nov 2006 13:50:24 -0500
  • Delivery-date: Tue, 21 Nov 2006 10:50:31 -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=Wazogzn9ePl/GufyLES0yNSfbiSpVzLiocn7IlFre9VI9lEsCpy0RYYFu46R1kVhsqqXU4BHfPCOXR9hCnQpMBOnlwd7cbBQ2bH8RqfiCc09hluwNFXk90KOOsGtWMKGYvODQ7LLJHEwSOXgPe6/liWTx31vCrkiLgAQcYKxrBc=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 11/20/06, Tim Wood <twwood@xxxxxxxxx> wrote:
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.

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?

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


 


Rackspace

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