ia64/xen-unstable

changeset 17252:c4de13817571

svm: Reported SS.DPL must equal CPL, as this is assumed by generic HVM
code despite the fact that AMD processors do not always maintain this
invariant.

Based on a bug report and proposed patch by Ben Guthro and Robert
Phillips of Virtual Iron.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 15:26:35 2008 +0000 (2008-03-18)
parents b2a3fe7f5591
children bdaf721c3616
files xen/arch/x86/hvm/svm/svm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/svm/svm.c	Tue Mar 18 15:23:25 2008 +0000
     1.2 +++ b/xen/arch/x86/hvm/svm/svm.c	Tue Mar 18 15:26:35 2008 +0000
     1.3 @@ -495,6 +495,7 @@ static void svm_get_segment_register(str
     1.4          break;
     1.5      case x86_seg_ss:
     1.6          memcpy(reg, &vmcb->ss, sizeof(*reg));
     1.7 +        reg->attr.fields.dpl = vmcb->cpl;
     1.8          break;
     1.9      case x86_seg_tr:
    1.10          svm_sync_vmcb(v);