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

Re: [Xen-devel] arch_set_info_guest() and cr1



We stash the user-space CR3 value there (PV x86_64 guests have two CR3s). Of
course you should need only the guest kernel CR3.

 K.

On 12/08/2011 03:03, "Mukesh Rathor" <mukesh.rathor@xxxxxxxxxx> wrote:

> Hi,
> 
> Just wondering under what circumstances will cr1 be set in this
> function?
> 
> int arch_set_info_guest(
>     struct vcpu *v, vcpu_guest_context_u c)
> {
> .....
> 
> #ifdef __x86_64__
>         if ( c.nat->ctrlreg[1] )           <------
>         {
> .....
> 
> 
> 
> thanks,
> Mukesh
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
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®.