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)
commit86935fc4ee4d95efe01b6c91cd5143fa4c38c02b
treebac296987d1d5fbb756912e643e7faa23c663e1b
parent3412b6ae2924e068f9932f841bdea0f2d8424502
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