]> git.baikalelectronics.ru Git - kernel.git/commit
lguest: map Switcher text whenever we allocate a new pagetable.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2013 04:40:41 +0000 (14:10 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 22 Apr 2013 06:15:02 +0000 (15:45 +0930)
commite061b450e29c1376f6a67ab26f2093414691bff8
treebac296987d1d5fbb756912e643e7faa23c663e1b
parentc8244cd4f4314a0f3472fd5c2c33308c935d3c4b
lguest: map Switcher text whenever we allocate a new pagetable.

It's always to same, so no need to put in the PTE every time we're
about to run.  Keep a flag to track whether the pagetable has the
Switcher entries allocated, and when allocating always initialize the
Switcher text PTE.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/lguest/lg.h
drivers/lguest/page_tables.c