Hello Joseph,
On Sat, Oct 17, 2015 at 12:31:09PM +0200, Joseph Lee wrote:
I am running a simple "tz_vmm" example in Genode on imx53 qsb. I have Noux application which runs on top of Noux runtime inside the secure world. I wanted to access this Noux applications inside tz_vmm application, calling a function of Noux application from tz_vmm code. But i have no idea how to do that. Could anyone please give me some hint?
What you're trying to achieve is to run two components (tz_vmm and a Noux process) and trigger the execution of a function in the Noux process by the tz_vmm component, right? I fear that my rephrasing does not make anything more clear in your application scenario but I will nevertheless try to propose a direction to follow.
The Noux environment provides a POSIX runtime and POSIX (pthreads etc. aside) is all about files when it comes to data exchange. So, you may monitor a file (e.g., via select()) in the program. If you place the file in a ram_fs and permit access to the file system to both, the Noux process and tz_vmm, tz_vmm could trigger code execution in the Noux process by writing into the file that is monitored. This scenario should also work on any POSIX system where you may implement a prototype.
In case I got you wrong, please try to elaborate more on your goals or give more details about your scenario.
Regards