Linus Torvalds writes: (Summary) We
only do the fault protection on 32-bit.
only do the fault protection on 32-bit.
In fact, we really should try to avoid taking faults here anyway, shouldn't we? Hmm.
Hmm.
Maybe we should load only the fixed kernel segments at this point, and then do all the loadsegment() of gs/fs in the later phase when we're all set up.
all set up.
THERE we can do the swapgs dance with interrupt tracing etc, because *there* we actually are fully set up. I guess that means reloading the FS/GS base MSR's,
FS/GS base MSR's,
Linus
Linus
Linus
only do the fault protection on 32-bit.
In fact, we really should try to avoid taking faults here anyway, shouldn't we? Hmm.
Hmm.
Maybe we should load only the fixed kernel segments at this point, and then do all the loadsegment() of gs/fs in the later phase when we're all set up.
all set up.
THERE we can do the swapgs dance with interrupt tracing etc, because *there* we actually are fully set up. I guess that means reloading the FS/GS base MSR's,
FS/GS base MSR's,
Linus
Linus
Linus