microsoft/mu_feature_ffa
Publicmirrored from https://github.com/microsoft/mu_feature_ffaAvailable
FfaFeaturePkg/SecurePartitions/MsSecurePartitionRust/README.md
27lines · modecode
| 1 | # QEMU Inter-Partition Secure Partition |
| 2 | |
| 3 | An implementation of Inter-Partition secure partition based on QEMU haf-ec-service. |
| 4 | |
| 5 | - `aarch64-rt` for the entry point and exception handling. |
| 6 | |
| 7 | ## Cargo features |
| 8 | |
| 9 | - `tpm` — enable the TPM service and use the TPM CRB addresses for the selected target. |
| 10 | |
| 11 | The four supported combinations produce one binary each: TPM-on / TPM-off. |
| 12 | |
| 13 | ## Building |
| 14 | |
| 15 | Default build (ARM Virt, no TPM): |
| 16 | |
| 17 | ```bash |
| 18 | cargo build --target=aarch64-unknown-none |
| 19 | cargo objcopy --target=aarch64-unknown-none -- -O binary target/aarch64-unknown-none/debug/msft-sp-virt.bin |
| 20 | ``` |
| 21 | |
| 22 | Other variants — add the relevant features: |
| 23 | |
| 24 | ```bash |
| 25 | cargo build --target=aarch64-unknown-none --features tpm |
| 26 | cargo objcopy --target=aarch64-unknown-none --features tpm -- -O binary target/aarch64-unknown-none/debug/msft-sp-virt-tpm.bin |
| 27 | ``` |
| 28 | |