From: Mukesh Rathor Subject: Re: arch_set_info_guest() and cr1 Date: Fri, 12 Aug 2011 15:01:15 -0700 Message-ID: <20110812150115.6047b8c2@mantra.us.oracle.com> 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: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org 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 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" 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 >