• Rusty Russell's avatar
    [PATCH] i386: rationalize paravirt wrappers · 90a0a06a
    Rusty Russell authored
    paravirt.c used to implement native versions of all low-level
    functions.  Far cleaner is to have the native versions exposed in the
    headers and as inline native_XXX, and if !CONFIG_PARAVIRT, then simply
    #define XXX native_XXX.
    
    There are several nice side effects:
    
    1) write_dt_entry() now takes the correct "struct Xgt_desc_struct *"
       not "void *".
    
    2) load_TLS is reintroduced to the for loop, not manually unrolled
       with a #error in case the bounds ever change.
    
    3) Macros become inlines, with type checking.
    
    4) Access to the native versions is trivial for KVM, lguest, Xen and
       others who might want it.
    Signed-off-by: default avatarJeremy Fitzhardinge <jeremy@xensource.com>
    Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Cc: Andi Kleen <ak@muc.de>
    Cc: Avi Kivity <avi@qumranet.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    90a0a06a
system.h 14.7 KB