VHE: Associate a page table with an ASID/VMID
Added an id field to page table structures(struct mm_ptable). This will
help future changes where we can invalidate TLB entries by VMID's and
ASID's. In the near term, this is primarily expected to be useful for
EL0 partitions, where we want to be able to invalidate TLB by ASID's
when mapping/unmapping/replacing page table entries for an EL0
partition.
Change-Id: I3b6ea97eaf4281954ca953cb8f5a40edbf5a2661
Signed-off-by: Raghu Krishnamurthy <raghu.ncstate@gmail.com>
diff --git a/src/vm.c b/src/vm.c
index e575d35..a3ecddd 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -52,7 +52,7 @@
atomic_init(&vm->aborting, false);
vm->el0_partition = el0_partition;
- if (!mm_vm_init(&vm->ptable, ppool)) {
+ if (!mm_vm_init(&vm->ptable, id, ppool)) {
return NULL;
}