Hi everyone,

Recently we've been running into an issue with the fact that Jailhouse sets up 
HCR.TSC=1 (exception to EL2 if SMC is called from non-secure EL1).
In xilinx kernels Linux makes use of SMC calls for talking to the PMU (in the 
zynqmp power management driver).

In one of our use cases, interrogating a CAN interface on the board triggers a 
PM event and therefore at least one SMC call which ends up crashing the root 
cell.

Is this setup (HCR.TSC=1) intended to stay? I can see the risks here (and read 
something about the intentions in another thread here) but the PM driver seems 
to be quite useful to have running nowadays.
While for us the exception only comes up for a random CAN ioctl, what about 
other PM actions?

For now we can disable CAN or PM.
How would one go about handling SMC call forwarding from the exception context 
- I understand this happens already for ARM.
I'm not sure there's an easy way to get a list of SMC function ids to maybe add 
to the cell configuration.

Lucian Silistru

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to