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] arch_set_info_guest() and cr1

To: Keir Fraser <keir.xen@xxxxxxxxx>
Subject: Re: [Xen-devel] arch_set_info_guest() and cr1
From: Mukesh Rathor <mukesh.rathor@xxxxxxxxxx>
Date: Fri, 12 Aug 2011 15:01:15 -0700
Cc: "Xen-devel@xxxxxxxxxxxxxxxxxxx" <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 12 Aug 2011 15:02:53 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <CA6A83D7.1F1E6%keir.xen@xxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Oracle Corporation
References: <20110811190315.1cc6afab@xxxxxxxxxxxxxxxxxxxx> <CA6A83D7.1F1E6%keir.xen@xxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Ah I see it, during save/restore, it is used. 
Well, I'm trying to keep the option of using PV paging with hybrid, so 
I may need to honor that. But that's phase 2.

thanks,
Mukesh

On Fri, 12 Aug 2011 07:16:39 +0100
Keir Fraser <keir.xen@xxxxxxxxx> wrote:

> 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

<Prev in Thread] Current Thread [Next in Thread>