From 68acae824faa09d8cfce174b66c4fabf3d742422 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Thu, 20 Mar 2008 12:25:35 +0000 Subject: [PATCH] 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 xen-unstable changeset: 17235:c4de138175712f661e0a5bbe35b8834711db63b7 xen-unstable date: Tue Mar 18 15:26:35 2008 +0000 --- xen/arch/x86/hvm/svm/svm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/arch/x86/hvm/svm/svm.c b/xen/arch/x86/hvm/svm/svm.c index 9afe5887c..9b1b91003 100644 --- a/xen/arch/x86/hvm/svm/svm.c +++ b/xen/arch/x86/hvm/svm/svm.c @@ -755,6 +755,7 @@ static void svm_get_segment_register(struct vcpu *v, enum x86_segment seg, break; case x86_seg_ss: memcpy(reg, &vmcb->ss, sizeof(*reg)); + reg->attr.fields.dpl = vmcb->cpl; break; case x86_seg_tr: svm_sync_vmcb(v); -- 2.39.5