Remove MM_MODE_NOINVALIDATE.
This flag exists to avoid paying the cost required for consistency when
consistency is not required. It was used for stage-2 allocation when the
VMs are initially being created i.e. there is a point before which all
stage-2 updates don't invalidate and after which they do. Given this, it
can move to the same approach used by the locks for dlog and mpool
allowing the mode clutter to be removed from where is doesn't belong.
Change-Id: I9be9e42c1daaf8570d7555bb3f37876aa7c3bd51
diff --git a/src/main.c b/src/main.c
index e1555cc..a88e67a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -135,6 +135,9 @@
/* Initialise the API page pool. ppool will be empty from now on. */
api_init(&ppool);
+ /* Enable TLB invalidation for VM page table updates. */
+ mm_vm_enable_invalidation();
+
dlog("Hafnium initialisation completed\n");
}