From: "Jan Beulich" Subject: Re: RFC: PVH set vcpu info context in vmcs.... Date: Tue, 13 Aug 2013 13:10:31 +0100 Message-ID: <520A3E5702000078000EB84D@nat28.tlf.novell.com> References: <20130812184513.56188d29@mantra.us.oracle.com> <20130813091614.GB35164@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130813091614.GB35164@ocelot.phlegethon.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mukesh Rathor , Tim Deegan Cc: Keir Fraser , "Xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org >>> On 13.08.13 at 11:16, Tim Deegan wrote: >> __vmwrite(GUEST_FS_SELECTOR, ctxtp->user_regs.fs); >> __vmwrite(GUEST_GS_SELECTOR, ctxtp->user_regs.gs); > > Or we could load these segments from their selectors too, and then > either check that the supplied bases match or mandate that they be zero. For FS and GS that would be wrong - you can't load them through a selector when the base is beyond 4Gb. As said in my other reply, I think we should require the selectors to be zero, and load just the bases. Jan