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

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

From: Jeremy Fitzhardinge <hidden>
Date: 2007-02-21 23:29:52
Also in: lkml, xen-devel

Zachary Amsden wrote:
I agree with that, but especially because this is not even the right
place to save and clear gs; when userspace uses an LDT based %gs, you
need to do this all the way back in mmu_context.h before you switch
the LDT out. 
Yeah.  This patch was really just to shut my debug Xen build up.  
There's no correctness issue one way or the other, so it doesn't really
matter that it doesn't catch LDT-using processes.
And I noticed this martian hanging out in mmu_context.h:

#define deactivate_mm(tsk, mm)                  \
       asm("movl %0,%%gs": :"r" (0));
Yeah, I've always wondered what this is for.  Its a remnant of a
remnant, I think.

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