Hello Stefano, Hiramatsu-san,
Stefano Stabellini writes:
CCing Volodymyr who maintains optee support in Xen
On Wed, 2 Dec 2020, Masami Hiramatsu via Stratos-dev wrote:
Hi Alex,
Have you enabled the OP-TEE support on Xen on your matchartbin?
When I ran Xen Dom0 with OP-TEE, I got below error.
[ 6.482047] optee: probing for conduit method. (XEN) d0v18 Unhandled SMC/HVC: 0xbf00ff01 [ 6.482301] nvme nvme0: 1/0/0 default/read/poll queues [ 6.490154] optee: api uid mismatch [ 6.498962] optee: probe of firmware:optee failed with error -22
Would you know this issue?
Looks like you are not enabled optee support in your Xen build. This is still an experimental feature, so you need to enable the following options in your xen/.config:
CONFIG_EXPERT=y CONFIG_TEE=y CONFIG_OPTEE=y
Also, you need to build OP-TEE with virtualization support. It is done by calling make with option CFG_VIRTUALIZATION=y
There are chances, that it will not work right away on your platform, because sometimes OP-TEE platform code requires some adjustments to be compatible with virtualization mode. Right now I can confirm that virtualization works on IMX8 and on Rcar Gen3.