From: "Jan Beulich" Subject: Re: RFC: PVH set vcpu info context in vmcs.... Date: Thu, 15 Aug 2013 07:34:39 +0100 Message-ID: <520C929F02000078000EC0F3@nat28.tlf.novell.com> References: <20130812184513.56188d29@mantra.us.oracle.com> <520A2D0402000078000EB7E7@nat28.tlf.novell.com> <20130813191203.0e2e0d5f@mantra.us.oracle.com> <520B661202000078000EBC88@nat28.tlf.novell.com> <20130814172515.11fb949a@mantra.us.oracle.com> <20130814185821.739aa30c@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1V9r8s-00052C-DW for xen-devel@lists.xenproject.org; Thu, 15 Aug 2013 06:34:42 +0000 In-Reply-To: <20130814185821.739aa30c@mantra.us.oracle.com> 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 Cc: xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 15.08.13 at 03:58, Mukesh Rathor wrote: >> __vmwrite(GUEST_FS_BASE, ctxtp->fs_base); >> __vmwrite(GUEST_GS_BASE, ctxtp->gs_base_kernel); >> >> if ( (rc = vmx_add_guest_msr(MSR_SHADOW_GS_BASE)) ) >> goto out; >> vmx_write_guest_msr(MSR_SHADOW_GS_BASE, ctxtp->gs_base_user); >> > > Thinking about this more, I realized we are unnecessarily creating > a vmcs intercept for gs_base_user. How about we not allow that either? Why would requiring this base to be zero avoid the need to create an intercept? Also, remember that the user/kernel distinction here is sort of a mis-naming by the Xen public interface - the CPU architecture calls them GS base and shadow GS base, so other usage models by kernels are possible (albeit admittedly unlikely). Jan