On Wed, Jan 17, 2018 at 10:12:32AM -0800, Andy Lutomirski wrote:
> I would optimize for simplicity, not speed. You're already planning
> to write to CR3, which is serializing, blows away the TLB, *and* takes
> the absurdly large amount of time that the microcode needs to blow
> away the TLB.
Okay
On Wed, Jan 17, 2018 at 6:10 AM, Joerg Roedel wrote:
> On Wed, Jan 17, 2018 at 05:57:53AM -0800, Brian Gerst wrote:
>> On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote:
>
>> > I have no real idea on how to switch back to the entry stack without
>> > access to per_cpu variables. I also can't ac
On Wed, Jan 17, 2018 at 03:14:18PM +0100, Joerg Roedel wrote:
> On Wed, Jan 17, 2018 at 06:00:07AM -0800, Brian Gerst wrote:
> > On Wed, Jan 17, 2018 at 5:57 AM, Brian Gerst wrote:
> > But then again, you could take a fault on the trampoline stack if you
> > get a bad segment. Perhaps just pushin
On Wed, Jan 17, 2018 at 06:00:07AM -0800, Brian Gerst wrote:
> On Wed, Jan 17, 2018 at 5:57 AM, Brian Gerst wrote:
> But then again, you could take a fault on the trampoline stack if you
> get a bad segment. Perhaps just pushing the new stack pointer onto
> the process stack before user segment l
On Wed, Jan 17, 2018 at 05:57:53AM -0800, Brian Gerst wrote:
> On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote:
> > I have no real idea on how to switch back to the entry stack without
> > access to per_cpu variables. I also can't access the cpu_entry_area for
> > the cpu yet, because for tha
On Wed, Jan 17, 2018 at 5:57 AM, Brian Gerst wrote:
> On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote:
>> On Tue, Jan 16, 2018 at 02:48:43PM -0800, Andy Lutomirski wrote:
>>> On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote:
>>> > + /* Restore user %edi and user %fs */
>>> > +
On Wed, Jan 17, 2018 at 1:24 AM, Joerg Roedel wrote:
> On Tue, Jan 16, 2018 at 02:48:43PM -0800, Andy Lutomirski wrote:
>> On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote:
>> > + /* Restore user %edi and user %fs */
>> > + movl (%edi), %edi
>> > + popl %fs
>>
>> Yikes! We'r
On Tue, Jan 16, 2018 at 02:48:43PM -0800, Andy Lutomirski wrote:
> On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote:
> > + /* Restore user %edi and user %fs */
> > + movl (%edi), %edi
> > + popl %fs
>
> Yikes! We're not *supposed* to be able to observe an asynchronous
> desc
On Tue, Jan 16, 2018 at 8:36 AM, Joerg Roedel wrote:
> From: Joerg Roedel
>
> Switch back to the trampoline stack before returning to
> userspace.
>
> Signed-off-by: Joerg Roedel
> ---
> arch/x86/entry/entry_32.S| 58
>
> arch/x86/kernel/asm-off
9 matches
Mail list logo