From: Tim Deegan Subject: Re: [PATCH] x86/VT-x: Disable MSR intercept for SHADOW_GS_BASE. Date: Thu, 14 Nov 2013 17:01:09 +0100 Message-ID: <20131114160109.GE42238@deinos.phlegethon.org> References: <1384437776-8364-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1384437776-8364-1-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Keir Fraser , Jan Beulich , Eddie Dong , Xen-devel , Paul Durrant , Jun Nakajima List-Id: xen-devel@lists.xenproject.org At 14:02 +0000 on 14 Nov (1384434176), Andrew Cooper wrote: > Intercepting this MSR is pointless - The swapgs instruction does not cause a > vmexit, so the cached result of this is potentially stale after the next guest > instruction. It is correctly saved and restored on vcpu context switch. > > Furthermore, 64bit Windows writes to this MSR on every thread context switch, > so interception causes a substantial performance hit. > > From: Paul Durrant > Signed-off-by: Paul Durrant > Signed-off-by: Andrew Cooper Reviewed-by: Tim Deegan