-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qemu_v8: add Trusted Services support
Add support for building the SPMC test Secure Partitions (SPs) implemented by the Trusted Services project. The build system is configured to build SPs with SEL0_SPS=y: - the SPs are embedded into the OP-TEE binary - the ffa_spmc testsuite is enabled in in xtest - the out-of-tree linux-arm-ffa-user kernel module is build - a S30test-arm-ffa-user init-script loads the kernel module during boot Signed-off-by: Jens Wiklander <[email protected]> Acked-by: Jerome Forissier <[email protected]> Tested-by: Jerome Forissier <[email protected]> (vexpress-qemu_armv8a)
- Loading branch information
1 parent
3295735
commit 4790a21
Showing
3 changed files
with
85 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/sh | ||
|
||
ARM_FFA_USER_DIR=/mnt/host/out/linux-arm-ffa-user | ||
|
||
start() { | ||
if [ -x $ARM_FFA_USER_DIR/load_module.sh ]; then | ||
if ! grep -qs arm_ffa_user /proc/modules; then | ||
echo "Loading arm-ffa-user kernel module" | ||
$ARM_FFA_USER_DIR/load_module.sh | ||
# Needed to test as non-root | ||
chmod 755 /sys/kernel/debug | ||
chmod 666 /sys/kernel/debug/arm_ffa_user | ||
fi | ||
fi | ||
|
||
return $? | ||
} | ||
|
||
stop() { | ||
if [ -x $ARM_FFA_USER_DIR/load_module.sh ]; then | ||
if grep -qs arm_ffa_user /proc/modules; then | ||
echo "Unloading arm-ffa-user kernel module" | ||
rmmod arm-ffa-user | ||
fi | ||
fi | ||
|
||
return $? | ||
} | ||
|
||
restart() { | ||
stop | ||
sleep 1 | ||
start | ||
} | ||
|
||
case "$1" in | ||
start|stop|restart) | ||
"$1";; | ||
reload) | ||
# Restart, since there is no "reload" feature | ||
restart;; | ||
*) | ||
echo "Usage: $0 {start|stop|restart|reload}" | ||
exit 1 | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters