Page MenuHomeFreeBSD

D37299.diff
No OneTemporary

D37299.diff

diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c
--- a/sys/arm64/arm64/pmap.c
+++ b/sys/arm64/arm64/pmap.c
@@ -685,8 +685,15 @@
}
bool
-pmap_ps_enabled(pmap_t pmap __unused)
+pmap_ps_enabled(pmap_t pmap)
{
+ /*
+ * Promotion requires a hypervisor call when the kernel is running
+ * in EL1. To stop this disable superpage support on non-stage 1
+ * pmaps for now.
+ */
+ if (pmap->pm_stage != PM_STAGE1)
+ return (false);
return (superpages_enabled != 0);
}

File Metadata

Mime Type
text/plain
Expires
Mon, Jan 27, 10:01 PM (8 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16215737
Default Alt Text
D37299.diff (486 B)

Event Timeline