Hi Everyone,
We're developing an hypervisor for the ARM Cortex A53 that has an embedded health monitor.
Right now, we are attempting to route EL1 synchronous exceptions, like stage 1 MMU translation fault, to EL2.
The reason behind this is because we want to inform the health monitor about the degraded state of an executing guest OS.
However, looking into the documentation, it does not seem that this behavior is supported through the configuration of HCR_EL2.
So, for the sake of clarity, the current exception I'm having at EL1 provides the following ESR_EL1: 0x96000005
For some reason, the code tries to read from an address that is not permitted by the stage 1 MMU configuration.
When the hypervisor schedules the guest OS (bare-metal application) and the app code tries to read from an access without permission, it will throw the Data Abort exception without a change in EL.
The only way I've seen so far, is to provide an hypervisor call (HVC) that would be called from the guest OS, but this requires the guest OS to call it.
This would undermine our goal of having a general purpose hypervisor that would implement full virtualization without require any kind of coupling from the guest OS side.
Is there any option that would allow us to have an hypervisor trapping such exceptions?
Thanks in advance.