summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/include/pmap.h
diff options
context:
space:
mode:
authorStefan Kempf <stefan@cvs.openbsd.org>2016-02-08 18:23:05 +0000
committerStefan Kempf <stefan@cvs.openbsd.org>2016-02-08 18:23:05 +0000
commit15f2988e12abedee671ca5274a44333e8c672ab8 (patch)
treead223365d643b680e0328646e87a02e4b9fe677f /sys/arch/amd64/include/pmap.h
parentfab1ff0e658c13f4af9cbf69c24c47dbbce4ccd3 (diff)
Set EPT bits of guest pages in pmap_enter instead of doing it
after an uvm_fault: uvm_fault maps in neighboring pages of the faulting page. We want EPT bits set for those as soon as possible as well. This avoids additional EPT violations causing further uvm_faults when the guest accesses the neighboring pages. discussion with and ok mlarkin@
Diffstat (limited to 'sys/arch/amd64/include/pmap.h')
-rw-r--r--sys/arch/amd64/include/pmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/include/pmap.h b/sys/arch/amd64/include/pmap.h
index 2a87c431671..7e7362e9ac6 100644
--- a/sys/arch/amd64/include/pmap.h
+++ b/sys/arch/amd64/include/pmap.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap.h,v 1.61 2015/11/13 07:52:20 mlarkin Exp $ */
+/* $OpenBSD: pmap.h,v 1.62 2016/02/08 18:23:04 stefan Exp $ */
/* $NetBSD: pmap.h,v 1.1 2003/04/26 18:39:46 fvdl Exp $ */
/*
@@ -369,7 +369,7 @@ static void pmap_update_pg(vaddr_t);
static void pmap_update_2pg(vaddr_t,vaddr_t);
void pmap_write_protect(struct pmap *, vaddr_t,
vaddr_t, vm_prot_t);
-int pmap_fix_ept(struct pmap *, vaddr_t, int *);
+void pmap_fix_ept(struct pmap *, vaddr_t);
vaddr_t reserve_dumppages(vaddr_t); /* XXX: not a pmap fn */