[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] [HVM][SVM] Save/restore: set CPL from SS.DPL on restore



# HG changeset patch
# User Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
# Date 1176481041 -3600
# Node ID 0c00c6a48d52ff7143c5a259c4ec1b76becf679a
# Parent  039daabebad5d3c69fb9497693e8e3fd4fee00c9
[HVM][SVM] Save/restore: set CPL from SS.DPL on restore
(not needed on VMX, which doesn't keep the CPL separately from SS.DPL)
Signed-off-by: Tim Deegan <Tim.Deegan@xxxxxxxxxxxxx>
---
 xen/arch/x86/hvm/svm/svm.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 039daabebad5 -r 0c00c6a48d52 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c        Fri Apr 13 16:07:48 2007 +0100
+++ b/xen/arch/x86/hvm/svm/svm.c        Fri Apr 13 17:17:21 2007 +0100
@@ -397,6 +397,7 @@ int svm_vmcb_restore(struct vcpu *v, str
     vmcb->ss.limit      = c->ss_limit;
     vmcb->ss.base       = c->ss_base;
     vmcb->ss.attr.bytes = c->ss_arbytes;
+    vmcb->cpl           = vmcb->ss.attr.fields.dpl;
 
     vmcb->fs.sel        = c->fs_sel;
     vmcb->fs.limit      = c->fs_limit;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.