lkml.org 
[lkml]   [2021]   [Sep]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 22/24] x86/entry: Implement and use do_paranoid_entry() and paranoid_exit()
    From
    Date


    On 2021/9/2 18:33, Peter Zijlstra wrote:
    > On Wed, Sep 01, 2021 at 01:50:23AM +0800, Lai Jiangshan wrote:
    >
    >> + call do_paranoid_entry
    >> ret
    >
    > That's normally spelled like:
    >
    > jmp do_paranoid_entry
    >
    > But the same comment as for error_entry but more; pretty much all that's
    > left in asm is things like:
    >
    >
    > call paranoid_entry;
    >
    > # setup args
    > call \cfunc
    >
    > call paranoid_exit
    >
    > which seems like prime material to also pull into C to avoid the
    > back-and-forth thing. In fact, why can't you call paranoid_entry/exit
    > from \cfunc itself? The IDT macros should be able to help.
    >

    Oh, #VC will need to switch stack. I think we need ASM code to switch
    stack since the original stack need to be "free" for next #VC.

    \
     
     \ /
      Last update: 2021-09-02 13:59    [W:2.600 / U:0.096 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site