[lkml]   [2007]   [Aug]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[PATCH 24/25] [PATCH] provide paravirt patching function
    This patch introduces apply_paravirt(), a function that shall
    be called by i386/alternative.c to apply replacements to
    paravirt_functions. It is defined to an do-nothing function
    if paravirt is not enabled.

    Signed-off-by: Glauber de Oliveira Costa <>
    Signed-off-by: Steven Rostedt <>
    include/asm-x86_64/alternative.h | 8 +++++---
    1 files changed, 5 insertions(+), 3 deletions(-)

    diff --git a/include/asm-x86_64/alternative.h b/include/asm-x86_64/alternative.h
    index ab161e8..e69a141 100644
    --- a/include/asm-x86_64/alternative.h
    +++ b/include/asm-x86_64/alternative.h
    @@ -143,12 +143,14 @@ static inline void alternatives_smp_switch(int smp) {}
    #define ASM_OUTPUT2(a, b) a, b

    -struct paravirt_patch;
    +struct paravirt_patch_site;
    -void apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end);
    +void apply_paravirt(struct paravirt_patch_site *start,
    + struct paravirt_patch_site *end);
    static inline void
    -apply_paravirt(struct paravirt_patch *start, struct paravirt_patch *end)
    +apply_paravirt(struct paravirt_patch_site *start,
    + struct paravirt_patch_site *end)
    #define __parainstructions NULL
    #define __parainstructions_end NULL
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2007-08-08 09:19    [W:0.019 / U:193.276 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site