lkml.org 
[lkml]   [2014]   [Jan]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 1/4] x86, ptdump: Add the functionality to dump an arbitrary pagetable
    From
    Date
    On Sat, 2014-01-11 at 21:49 +0100, Borislav Petkov wrote:
    > From: Borislav Petkov <bp@suse.de>
    >
    > With reusing the ->trampoline_pgd page table for mapping EFI regions in
    > order to use them after having switched to EFI virtual mode, it is very
    > useful to be able to dump aforementioned page table in dmesg. This adds
    > that functionality through the walk_pgd_level() interface which can be
    > called from somewhere else.
    []
    > diff --git a/arch/x86/mm/dump_pagetables.c b/arch/x86/mm/dump_pagetables.c
    []
    > @@ -306,6 +326,11 @@ static void walk_pgd_level(struct seq_file *m)
    > int i;
    > struct pg_state st;
    >
    > + if (pgd) {
    > + start = pgd;
    > + dump_to_dmesg = true;
    > + }

    else
    dump_to_dmesg = false;

    ?




    \
     
     \ /
      Last update: 2014-01-11 22:21    [W:4.285 / U:0.004 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site