Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Running Normal World App with OPTEE-OS on The Same Core #1036
I'm confused about how the cpu schedules OPTEE-OS tasks with a NS app at the same time.
I conducted some tests and I found out that a NS app could run on the same core while one TA is already running.
Any information is appreciated!
@SimonWan a running TA, can trigger RPC calls back to normal world (and there can also be interrupts). So most likely what you have been seeing is that the TA has issued a RPC. During that time before the RPC returns to secure world anyone else can use the core that the TA was running on.
Yes, depending on what operation the TA was running that can very well happen, FS call, mutex being used, condvar being used. Where it is? RPC code is in many place, easiest is just to search for it: https://github.com/OP-TEE/optee_os/search?utf8=%E2%9C%93&q=rpc . You could also have a look at the design doc, RPC is mentioned in quite a few places there: https://github.com/OP-TEE/optee_os/blob/master/documentation/optee_design.md
One way of testing this being sure that no RPC has been triggered is to do a