From: Keir Fraser Subject: Re: arch_set_info_guest() and cr1 Date: Fri, 12 Aug 2011 07:16:39 +0100 Message-ID: References: <20110811190315.1cc6afab@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20110811190315.1cc6afab@mantra.us.oracle.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Mukesh Rathor , "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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" 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@lists.xensource.com > http://lists.xensource.com/xen-devel