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] amd svm: Do not touch (non-existent) attr

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] amd svm: Do not touch (non-existent) attr and selector fields for GDTR
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Jun 2008 12:20:09 -0700
Delivery-date: Tue, 17 Jun 2008 12:20:13 -0700
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.fraser@xxxxxxxxxx>
# Date 1213626109 -3600
# Node ID 20d20a4858d6b1b833af3dddc317d20d30fb82d3
# Parent  42323a447cbe11b78574a69e01b009a458f014b3
amd svm: Do not touch (non-existent) attr and selector fields for GDTR
and IDTR in the VMCB in svm_set_segment_register(). This is just for
clarity of code and to prevent any issues in the future.

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/hvm/svm/svm.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff -r 42323a447cbe -r 20d20a4858d6 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Mon Jun 16 11:49:15 2008 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c        Mon Jun 16 15:21:49 2008 +0100
@@ -574,10 +574,12 @@ static void svm_set_segment_register(str
         memcpy(&vmcb->tr, reg, sizeof(*reg));
         break;
     case x86_seg_gdtr:
-        memcpy(&vmcb->gdtr, reg, sizeof(*reg));
+        vmcb->gdtr.base = reg->base;
+        vmcb->gdtr.limit = (uint16_t)reg->limit;
         break;
     case x86_seg_idtr:
-        memcpy(&vmcb->idtr, reg, sizeof(*reg));
+        vmcb->idtr.base = reg->base;
+        vmcb->idtr.limit = (uint16_t)reg->limit;
         break;
     case x86_seg_ldtr:
         memcpy(&vmcb->ldtr, reg, sizeof(*reg));

_______________________________________________
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] amd svm: Do not touch (non-existent) attr and selector fields for GDTR, Xen patchbot-unstable <=