Trap EL1 accesses to LORegion registers
Traps EL1 accesses to the LORegion registers if that feature is available.
Linux assumes only one ordering region, and disables this feature if it boots
as EL2. LORegions are controlled by physical address, and be a security issue.
Bug: 141600635
Change-Id: Ib5c4a8dbf7650348d66815865dc4d021a08023d5
diff --git a/src/main.c b/src/main.c
index 7b8df60..8896b77 100644
--- a/src/main.c
+++ b/src/main.c
@@ -30,6 +30,8 @@
vm = vcpu->vm;
vcpu->cpu = c;
+ arch_cpu_init();
+
/* Reset the registers to give a clean start for the primary's vCPU. */
arch_regs_reset(&vcpu->regs, true, vm->id, c->id, vm->ptable.root);