• J
    uml: speed page fault path · 64f60841
    Jeff Dike 提交于
    Give the page fault code a specialized path.  There is only one page to look
    at, so there's no point in going into the general page table walking code.
    There's only going to be one host operation, so there are no opportunities for
    merging.  So, we go straight to the pte we want, figure out what needs doing,
    and do it.
    
    While I was in here, I fixed the wart where the address passed to unmap was a
    void *, but an unsigned long to map and protect.
    
    This gives me just under 10% on a kernel build.
    Signed-off-by: NJeff Dike <jdike@linux.intel.com>
    Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    64f60841
os.h 11.5 KB