Hi,
I am trying to access normal world memory from secure world. Similar issues i found for OP-TEE:
https://github.com/OP-TEE/optee_os/issues/1343
https://github.com/OP-TEE/optee_os/issues/404
https://github.com/OP-TEE/optee_os/issues/803
So far reading above issues, i found mapping normal world memory to secure world would work. But i am clueless how to do that in Trusty.
Assume the following scenario:
NW kernel sends a variable address and SW will change the value at that address.
Here is what I think needs to be done.
- Map NW memory to SW.
- NW kernel sends two things to SW via smc
a) physical address of its page table
b) virtual address of a variable "var_a " located in heap. - In SW, do a software NW kernel page walk. Get physical address of var_a. Convert it to SW virtual memory and change the value.
Is this correct or am I missing something?
Also how to do point 1 and 3?
Thanks.