Thread (37 messages) 37 messages, 7 authors, 2007-02-22

Re: [patch 17/24] Xen-paravirt_ops: avoid having a bad selector in %gs during context switch

From: Andi Kleen <hidden>
Date: 2007-02-21 22:10:21
Also in: lkml, xen-devel

 	/*
+	 * Temporary hack: zero gs now that we've saved it so that Xen
+	 * doesn't try to reload the old value after changing the GDT
+	 * during the context switch.  This can go away once Xen has
+	 * been taught to only reload %gs when it absolutely must.
+	 */
+	loadsegment(gs, 0);
Sorry, but i don't really want that unconditionally in the context switch.
Adding a paravirt ops for it would be also ugly. Can Xen be fixed?

-Andi
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help