WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] vmx: Set HOST_FS and HOST_GS to unusable

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] vmx: Set HOST_FS and HOST_GS to unusable on vmexit.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 14 Nov 2007 04:40:13 -0800
Delivery-date: Wed, 14 Nov 2007 04:40:58 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1194978647 0
# Node ID ab516ca6e984156fcc0498b135542a9e687aa626
# Parent  5e4d4934a5d74ec08931d8b7ff0f686877cdacaa
vmx: Set HOST_FS and HOST_GS to unusable on vmexit.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/arch/x86/hvm/vmx/vmcs.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diff -r 5e4d4934a5d7 -r ab516ca6e984 xen/arch/x86/hvm/vmx/vmcs.c
--- a/xen/arch/x86/hvm/vmx/vmcs.c       Tue Nov 13 17:57:22 2007 +0000
+++ b/xen/arch/x86/hvm/vmx/vmcs.c       Tue Nov 13 18:30:47 2007 +0000
@@ -493,18 +493,10 @@ static int construct_vmcs(struct vcpu *v
     __vmwrite(HOST_SS_SELECTOR, __HYPERVISOR_DS);
     __vmwrite(HOST_DS_SELECTOR, __HYPERVISOR_DS);
     __vmwrite(HOST_ES_SELECTOR, __HYPERVISOR_DS);
-#if defined(__i386__)
-    __vmwrite(HOST_FS_SELECTOR, __HYPERVISOR_DS);
-    __vmwrite(HOST_GS_SELECTOR, __HYPERVISOR_DS);
+    __vmwrite(HOST_FS_SELECTOR, 0);
+    __vmwrite(HOST_GS_SELECTOR, 0);
     __vmwrite(HOST_FS_BASE, 0);
     __vmwrite(HOST_GS_BASE, 0);
-#elif defined(__x86_64__)
-    {
-        unsigned long msr;
-        rdmsrl(MSR_FS_BASE, msr); __vmwrite(HOST_FS_BASE, msr);
-        rdmsrl(MSR_GS_BASE, msr); __vmwrite(HOST_GS_BASE, msr);
-    }
-#endif
 
     /* Host control registers. */
     __vmwrite(HOST_CR0, read_cr0() | X86_CR0_TS);

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] vmx: Set HOST_FS and HOST_GS to unusable on vmexit., Xen patchbot-unstable <=