ia64/xen-unstable
changeset 14856:0c00c6a48d52
[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@xensource.com>
(not needed on VMX, which doesn't keep the CPL separately from SS.DPL)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author | Tim Deegan <Tim.Deegan@xensource.com> |
---|---|
date | Fri Apr 13 17:17:21 2007 +0100 (2007-04-13) |
parents | 039daabebad5 |
children | 456c611ada02 |
files | xen/arch/x86/hvm/svm/svm.c |
line diff
1.1 --- a/xen/arch/x86/hvm/svm/svm.c Fri Apr 13 16:07:48 2007 +0100 1.2 +++ b/xen/arch/x86/hvm/svm/svm.c Fri Apr 13 17:17:21 2007 +0100 1.3 @@ -397,6 +397,7 @@ int svm_vmcb_restore(struct vcpu *v, str 1.4 vmcb->ss.limit = c->ss_limit; 1.5 vmcb->ss.base = c->ss_base; 1.6 vmcb->ss.attr.bytes = c->ss_arbytes; 1.7 + vmcb->cpl = vmcb->ss.attr.fields.dpl; 1.8 1.9 vmcb->fs.sel = c->fs_sel; 1.10 vmcb->fs.limit = c->fs_limit;