hv_exc: Enable SErrors in the hypervisor

This finally works properly now

Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
Hector Martin 2021-09-21 21:15:05 +09:00
parent 78cf104b1f
commit 56c3d93787

View file

@ -244,6 +244,10 @@ static void hv_exc_entry(struct exc_info *ctx)
ctx->cpu_id = smp_id();
ctx->mpidr = mrs(MPIDR_EL1);
sysop("isb");
sysop("msr daifclr, 4"); // Enable SErrors in the HV
__atomic_sub_fetch(&hv_cpus_in_guest, 1, __ATOMIC_ACQUIRE);
spin_lock(&bhl);
hv_wdt_breadcrumb('X');