• R
    [PATCH] i386: rationalize paravirt wrappers · 90a0a06a
    Rusty Russell 提交于
    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: NJeremy Fitzhardinge <jeremy@xensource.com>
    Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
    Signed-off-by: NAndi Kleen <ak@suse.de>
    Cc: Andi Kleen <ak@muc.de>
    Cc: Avi Kivity <avi@qumranet.com>
    Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
    90a0a06a
paravirt.c 7.8 KB