All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH][SVM] CPL initialization fix
@ 2008-03-10 19:14 Ben Guthro
  2008-03-10 19:18 ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: Ben Guthro @ 2008-03-10 19:14 UTC (permalink / raw)
  To: xen-devel, Robert Phillips

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

CPL should be determined by code segment's DPL, not data segment's.

This solves a problem migrating a QEMU guest without PV-on-HVM drivers

Signed-off-by: Robert Plillips <rphillips@virtualiron.com>
Signed-off-by: Ben Guthro <bguthro@virtualoiron.com>

[-- Attachment #2: lm-svm-cpl.patch --]
[-- Type: text/x-patch, Size: 439 bytes --]

diff -r f76f151a7431 xen/arch/x86/hvm/svm/svm.c
--- a/xen/arch/x86/hvm/svm/svm.c
+++ b/xen/arch/x86/hvm/svm/svm.c
@@ -557,7 +557,7 @@ static void svm_set_segment_register(str
         break;
     case x86_seg_ss:
         memcpy(&vmcb->ss, reg, sizeof(*reg));
-        vmcb->cpl = vmcb->ss.attr.fields.dpl;
+        vmcb->cpl = vmcb->cs.attr.fields.dpl;
         break;
     case x86_seg_tr:
         memcpy(&vmcb->tr, reg, sizeof(*reg));

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-10 21:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-10 19:14 [PATCH][SVM] CPL initialization fix Ben Guthro
2008-03-10 19:18 ` Keir Fraser
2008-03-10 19:26   ` Keir Fraser
2008-03-10 20:01     ` Robert Phillips
2008-03-10 21:57       ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.