Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F106107499
D32528.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
891 B
Referenced Files
None
Subscribers
None
D32528.diff
View Options
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c
--- a/sys/amd64/amd64/pmap.c
+++ b/sys/amd64/amd64/pmap.c
@@ -4345,7 +4345,9 @@
int i;
/*
- * allocate the page directory page
+ * Allocate the page directory page. Pass NULL instead of a pointer to
+ * the pmap here to avoid recording this page in the resident count, as
+ * optimizations in pmap_remove() depend on this.
*/
pmltop_pg = pmap_alloc_pt_page(NULL, 0, VM_ALLOC_WIRED | VM_ALLOC_ZERO |
VM_ALLOC_WAITOK);
@@ -4377,6 +4379,10 @@
else
pmap_pinit_pml4(pmltop_pg);
if ((curproc->p_md.md_flags & P_MD_KPTI) != 0) {
+ /*
+ * As with pmltop_pg, pass NULL instead of a pointer to
+ * the pmap to ensure that the PTI page isn't counted.
+ */
pmltop_pgu = pmap_alloc_pt_page(NULL, 0,
VM_ALLOC_WIRED | VM_ALLOC_WAITOK);
pmap->pm_pmltopu = (pml4_entry_t *)PHYS_TO_DMAP(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Dec 26, 12:48 PM (38 m, 57 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604855
Default Alt Text
D32528.diff (891 B)
Attached To
Mode
D32528: amd64: Add comments to pmap_pinit_type()
Attached
Detach File
Event Timeline
Log In to Comment