Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

qemu_v8: add Trusted Services support #802

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jenswi-linaro
Copy link
Contributor

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

Depends on OP-TEE/manifest#306

Note that the ffa_spmc suite doesn't pass with this yet since SP1 doesn't boot due to an invalid address in the SP1 manifest in the Trusted Services git.

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]>
@jenswi-linaro
Copy link
Contributor Author

The problem is here:
https://git.trustedfirmware.org/plugins/gitiles/TS/trusted-services.git/+/refs/tags/v1.1.0/deployments/spm-test1/opteesp/default_spm_test1.dts.in#29
@imre-kis-arm @gyuri-szing @gabor-toth-arm @balint-dobszay-arm how can we fix this for QEMU? Removing "test-region" seems to work, but perhaps that's not what we want.

@gyuri-szing
Copy link
Contributor

Pls cherry-pick this TS change [1], then add -DCFG_TEST_MEM_REGION_ADDRESS=<address> to SP_SPMC_TEST_EXTRA_FLAGS in qemu_v8.mk.

The TS change allows platform specific configuration of the base address of the memory region used for testing. The platform specific value can be overridden from the CMake command line like above.

For base-address please use any secure physical address which is unused in the specific configuration of qemu_v8. The address must be aligned to the translation granule, and the test is using a single page only.

I tested the cmake code and it correctly modifies the manifest, but I did not actually run the tests.

1: https://review.trustedfirmware.org/c/TS/trusted-services/+/34314

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants