Hafnium GIT Repository

Clone this repo:
  1. dc8cf3b test(ff-a): NPI not supported on EL0 partition by Karl Meakin · 2 weeks ago master
  2. f1ed5f1 fix(ff-a): report NPI unsupported on EL0 partition by Karl Meakin · 5 weeks ago
  3. 76f1c8f test(ff-a): SRI is unsupported on secure world by Karl Meakin · 2 weeks ago
  4. cb6642c fix(ff-a): report SRI unsupported to secure partitions by Karl Meakin · 4 weeks ago
  5. f786130 test(ff-a): FFA_FEATURES returns max RXTX buffer size by Karl Meakin · 5 weeks ago

Hafnium

Hafnium is the Secure Partition Manager(SPM) reference implementation, following the Arm's Firmware Framework specification.

It leverages Arm's virtualization extensions in the secure world of Arm's A class of devices (feature introduced with Armv8.4 FEAT_SEL2) to allow multiple Trusted OSes or Applications to run concurrently, inside the Trusted Execution Environment, each running as a Secure Partition (SP). Its main goal is to control the system access given to Trusted OSes, and serve as a mediator to the rest of the system.

For example, it limits the memory use, and handles all system calls from Trusted OS. Thus the SPM can enforce spacial isolation, and enforce some level of access control, protecting other critical system resources such as: the secure monitor, the normal world software stack, the SPM itself and other SPs/Trusted Applications. Other important features are: secure interrupt handling, device assignment, inter-partition communication and with the Normal World Software stack, also known as Rich Execution Environment (REE).

The following diagram shows an overview of a typical aarch64-based system, and where Hafnium fits:

Hafnium Architecture

Get in touch and keep up-to-date at:

See feature requests and bugs through github.

Documentation

To find more about Hafnium, view the full documentation. It includes valuable resources such as: Getting Started guide, Threat Model, and other documentation.