• Andi Kleen's avatar
    x86: add set_memory_4k to pageattr.c · c9caa02c
    Andi Kleen authored
    Add a new function to force split large pages into 4k pages.
    This is needed for some followup optimizations.
    
    I had to add a new field to cpa_data to pass down the information
    that try_preserve_large_page should not run.
    
    Right now no set_page_4k() because I didn't need it and all the
    specialized users I have in mind would be more comfortable with
    pure addresses. I also didn't export it because it's unlikely
    external code needs it.
    Signed-off-by: default avatarAndi Kleen <ak@suse.de>
    Cc: andreas.herrmann3@amd.com
    Cc: mingo@elte.hu
    Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    c9caa02c
pageattr.c 23.6 KB