summaryrefslogtreecommitdiffstats
path: root/drivers/lguest/page_tables.c
diff options
context:
space:
mode:
authorMatias Zabaljauregui <zabaljauregui@gmail.com>2009-05-30 15:35:49 -0300
committerRusty Russell <rusty@rustcorp.com.au>2009-06-12 22:27:06 +0930
commited1dc77810159a733240ba6751c1b31023bf8dd7 (patch)
treed77ed52cd56e2cf3f5eac9d5db22ad1196e694d8 /drivers/lguest/page_tables.c
parent7b5c806c35f6ff76b2e36a8b5b1513c8a83fcff7 (diff)
downloadop-kernel-dev-ed1dc77810159a733240ba6751c1b31023bf8dd7.zip
op-kernel-dev-ed1dc77810159a733240ba6751c1b31023bf8dd7.tar.gz
lguest: map switcher with executable page table entries
Map switcher with executable page table entries. (This bug didn't matter before PAE and hence NX support -- RR) Signed-off-by: Matias Zabaljauregui <zabaljauregui@gmail.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/lguest/page_tables.c')
-rw-r--r--drivers/lguest/page_tables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/lguest/page_tables.c b/drivers/lguest/page_tables.c
index a059cf9..4969953 100644
--- a/drivers/lguest/page_tables.c
+++ b/drivers/lguest/page_tables.c
@@ -714,7 +714,7 @@ void map_switcher_in_guest(struct lg_cpu *cpu, struct lguest_pages *pages)
/* Make the last PGD entry for this Guest point to the Switcher's PTE
* page for this CPU (with appropriate flags). */
- switcher_pgd = __pgd(__pa(switcher_pte_page) | __PAGE_KERNEL);
+ switcher_pgd = __pgd(__pa(switcher_pte_page) | __PAGE_KERNEL_EXEC);
cpu->lg->pgdirs[cpu->cpu_pgd].pgdir[SWITCHER_PGD_INDEX] = switcher_pgd;
OpenPOWER on IntegriCloud