blob: 4dca38086b2a5c6271fafe9455c2aa0622080388 [file] [log] [blame] [view]
Olivier Deprez55b74f82021-11-10 11:32:31 +01001# Change log
2
Olivier Deprez0715b8e2023-05-11 12:28:03 +02003## v2.9
4#### Highlights
5
6* FF-A v1.2 (early adoption)
7 * Implemented `FFA_PARTITION_INFO_GET_REGS` ABI permitting discovery of
8 secure partitions by the use of general purpose registers instead of RX/TX
9 buffers.
10 * `FFA_CONSOLE_LOG` ABI support is improved from earlier release. It permits
11 handling multiple characters passed through general purpose registers.
12 The intent is to deprecate the legacy `HF_DEBUG_LOG` hypercall in a next
13 release.
14 * Introduced `FFA_EL3_INTR_HANDLE` ABI permitting the delegation of Group0
15 physical secure interrupt handling to EL3. A G0 interrupt triggered while
16 an SP is running traps to S-EL2 and is routed to the SPMD by the use of
17 this ABI. Conversely, a G0 interrupt triggered while the normal world runs
18 traps to EL3.
19* FF-A v1.1 interrupt handling
20 * Added support for secure interrupt signalling to S-EL0 partitions.
21 * Increased the maximum number of virtual interrupts supported by an SP to a
22 platform defined value (default 1024). This lifts a limitation in which
23 SPs were allowed to declare only the first 64 physical interrupt IDs.
24 * Added the impdef 'other-s-interrupts-action' field to SP manifests
25 specifying the action to be taken (queued or signaled) in response to a
26 secure interrupt targetted to an SP that is not the currently running SP.
27 * For S-EL1 SP vCPUs, enable the notification pending and managed exit
28 virtual interrupts if requested in the manifest.
29 For S-EL0 SP vCPUs, enable virtual interrupts IDs matching the secure
30 physical interrupt IDs declared in device regions.
31 * Allow a physical interrupt declared in a SP manifest device region to be
32 routed to any PE specified by its MPIDR. Introduce the 'interrupts-target'
33 manifest field for this purpose.
34* FF-A v1.1 memory sharing
35 * Implemented changes to memory sharing structures to support FF-A backwards
36 compatibility updates in the specification. The SPMC implementation caters
37 for the case of existing FF-A v1.0 endpoints on top of the FF-A v1.1 SPMC.
38 The latter performs the necessary conversions in the memory sharing
39 structures.
40 * Implemented capability to share/lend/donate memory to multiple borrowers
41 including VMs or SPs.
42 * Fragmented memory sharing is supported between normal world and secure
43 world endpoints.
44* FF-A v1.1 power management
45 * Added the impdef 'power-management-messages' field to SP manifests
46 specifying the type of power management events relayed to the SPMC.
47 * Removed the limitation in which the first SP must be a MP SP.
48 The configuration where all deployed SPs are S-EL0 SPs is now supported.
49* FF-A v1.1 Indirect messaging
50 * Updated mailbox internal state structures to align with RX/TX buffer
51 synchronization rules (buffer state and ownership transfer).
52* Misc and bug fixes
53 * Introduced SPMC manifest memory region nodes specifying the system address
54 ranges for secure and non-secure memory. This permits further hardening in
55 which the SPMC needs to know the security state of a memory range. This
56 helps boot time validation of SP manifests, and run-time checks in the
57 memory sharing protocol.
58 * SP manifest memory regions validation is hardened such that one SP cannot
59 declare a memory region overlapping another SP's memory region.
60 * Drop dynamic allocation of memory region base address. The option for
61 declaring a memory region without its base address (and let the SPMC
62 choose it) is removed.
63 * Fixed handling of FEAT_LPA/FEAT_LPA2.
64 * SMMUv3: fix SIDSIZE field usage.
65 * GIC: fixed interrupt type configuration (edge/level).
66* CI and test infrastructure
67 * Migration to LLVM/clang 15.0.6
68 * Removal of non-VHE configurations. Keep only configurations assuming
69 Armv8.1 Virtualization Host Extensions is implemented. This implies
70 HCR_EL2.E2H is always set. This change is transparent for the end user as
71 configurations supported with VHE enabled are a superset of legacy non-VHE
72 configurations.
73 * EL3 SPMC: added test configurations to permit testing TF-A's EL3 SPMC
74 by the use of Hafnium's CI test and infrastructure. The goal is to improve
75 the test coverage for this alternative SPMC configuration and maintain a
76 feature set parity with the S-EL2 SPMC.
77 * Added debug capabilities to hftest script.
78
79#### Known limitations:
80* Power management support limits to cpu on and cpu off events. Only S-EL1
81 partitions can opt in for power management events. A power management
82 event is forwarded from the SPMD to the SPMC and isn't forwarded to a SP.
83
Olivier Deprezb7d27ac2022-11-14 09:49:50 +010084## v2.8
85#### Highlights
86
87* FF-A v1.1 partition runtime model and CPU cycle allocation modes
88 * Implemented partition runtime models for secure partitions entered at
89 initialization, processing a secure interrupt or as a result of allocation
Demi Marie Obenour1a55b772023-02-15 10:38:26 -050090 of CPU cycles by `FFA_RUN` and `FFA_MSG_SEND_DIRECT_REQ` ABIs invocations.
Olivier Deprezb7d27ac2022-11-14 09:49:50 +010091 * Added state machine checks related to above, in which a partition has a
92 set of allowed transitions to enter and exit a partition runtime model.
93 * Implemented CPU cycle allocation modes and winding/unwinding of call
94 chains.
95 * Refactored managed exit field in manifests to use one of the possible
96 "Action for a non-secure interrupt" defined by the specification.
97 * Added support for preferred managed exit signal (among vIRQ or vFIQ).
98 * Support for precedence of the NS interrupt action in unwinding a normal
99 world scheduled call chain.
100* FF-A v1.1 memory sharing
101 * Preparation changes for multiple borrowers and fragmented memory
102 sharing support.
103 * Fixed memory attributes checks as they are passed to memory sharing
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500104 primitives (`FFA_MEM_SHARE/LEND/DONATE` and `FFA_MEM_RETRIEVE_REQ`).
Olivier Deprezb7d27ac2022-11-14 09:49:50 +0100105 * Memory sharing support for S-EL0 partitions.
106* FF-A v1.1 notifications
107 * Added framework notifications support.
108 The supported use case is for indirect messaging to notify a partition
109 about a message pending in its RX buffer (or 'RX buffer full' framework
110 notification).
111 * Added support for notification pending interrupt injection on a RX buffer
112 full event.
113* FF-A v1.1 Indirect messaging
114 * Added support for VM-VM, VM-SP, SP-SP indirect messaging scenarios.
115 * Added partition message header structures.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500116 * Implemented `FFA_MSG_SEND2` and `FFA_RX_ACQUIRE` ABIs.
Olivier Deprezb7d27ac2022-11-14 09:49:50 +0100117 * Refactored VM internal state tracking in the SPMC to support forwarding
118 of RX/TX buffer mapping/unmapping, notifications creation/destruction,
119 RX buffer acquire/release.
120 * Refactored VM mailbox states to support the RX buffer full event.
121* FF-A console log ABI
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500122 * Added the `FFA_CONSOLE_LOG` ABI as a simple and standardized means to print
Olivier Deprezb7d27ac2022-11-14 09:49:50 +0100123 characters without depending on an MMIO device mapped into the VM.
124 This allows a VM to print debug or information strings through an
125 hypervisor call service using general-purpose registers rather than a
126 shared buffer. Multiple VMs can use the ABI concurrently as the SPMC
127 buffers data per VM and serializes output to the physical serial device.
128* FF-A v1.1 Setup & Discovery
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500129 * Updated the `PARTITION_INFO_GET` ABI to return the partition UUID in the
Olivier Deprezb7d27ac2022-11-14 09:49:50 +0100130 partition information descriptors. Additionaly the partition information
131 descriptor size is returned as part of the response.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500132 * Added `FFA_MEM_FRAG_RX/TX` as supported interface in `FFA_FEATURE` response.
Olivier Deprezb7d27ac2022-11-14 09:49:50 +0100133* Image footprint optimization
134 * The following updates were made with the general idea of reducing the
135 flash and RAM footprints. They are also means to adjust the memory
136 utilization based on the target market segment.
137 * Added platform defines to state the per-VM maximum number of memory and
138 device regions, interrupts and SMMU streams per device.
139 * Dynamically allocate per vCPU notifications.
140 * Allocate vCPU structures from heap.
141 * Manifest data allocation from page pool.
142 * Fixed core stacks section with noload attribute.
143* GIC
144 * Added support for GICv3.1 extended SPI / PPI INTID ranges.
145 * Add build options to extend the number of supported virtual interrupt IDs.
146* SVE
147 * Detect the platform supported SVE vector length or set the limit for the
148 lower ELs.
149 * Increased the SVE NS context to support the maximum vector length
150 permitted by the architecture.
151 * Above changes lift the limit about a fixed sized SVE vector length (of
152 512 bits) used in earlier releases.
153* Misc
154 * Partition manifest parsing:
155 * Added checks forbidding SPs to declare overlapping memory regions and
156 conflicting device interrupt ID resources.
157 * Add ability to specify the security state of a memory region
158 for S-EL0 partitions.
159 * Fixed system register trap exception injection.
160 * Removed hypervisor tables defragmentation.
161 * Add ability to define a log level per platform.
162 * Disable alignment check for EL0 partitions (when VHE is enabled).
163
164#### Known limitations:
165* S-EL0 partitions interrupt handling is work in progress.
166* Normal world to secure world fragmented memory sharing and sharing to multiple
167 borrowers is work in progress.
168
Olivier Deprez79e95222022-05-09 17:21:08 +0200169## v2.7
170#### Highlights
171
172* Boot protocol (FF-A v1.1 EAC0)
173 * The SPMC primarily supports passing the SP manifest address at boot time.
174 * In a secure partition package, partition manifest and image offsets are
175 configurable.
176 * Allows for larger partition manifest sizes.
177* Setup and discovery (FF-A v1.1 EAC0)
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500178 * `FFA_VERSION` is forwarded from SPMD to SPMC. SPMC records the version of
Olivier Deprez79e95222022-05-09 17:21:08 +0200179 a normal world endpoint.
180 * Added UUID to partition info descriptors.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500181 * Introduced count flag to `FFA_PARTITION_INFO_GET`.
Olivier Deprez79e95222022-05-09 17:21:08 +0200182* Interrupt handling (FF-A v1.1 Beta0)
183 * Physical GIC registers trapped when accessed from secure partitions.
184 * Priority mask register saved/restored on world switches.
185 * Interrupts masked before resuming a pre-empted vCPU.
186 * Implemented implicit secure interrupt completion signal.
187 * Allow unused GICR frame for non-existent PEs.
188* Notifications (FF-A v1.1 EAC0)
189 * Implemented notification pending interrupt and additional test coverage.
190* MTE stack tagging
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500191 * Implemented `FEAT_MTE2` stack tagging support at S-EL2.
Olivier Deprez79e95222022-05-09 17:21:08 +0200192 * Core stacks marked as normal tagged memory. A synchronous abort triggers
193 on a load/store tag check failure.
194 * This permits detection of wrong operations affecting buffers allocated
195 from the stack.
196* FF-A v1.0 compliance
197 * Check composite memory region offset is defined in FF-A memory sharing.
198 * Check sender and receiver memory attributes in a FF-A memory sharing
199 operation match the attributes expected in the Hafnium implementation.
200 * Fix clear memory bit use in FF-A memory sharing from NWd to SWd.
201 * Prevent FF-A memory sharing from a SP to a NS endpoint.
202 * Reject a FF-A memory retrieve operation with the 'Address Range Alignment
203 Hint' bit set (not supported by the implementation).
204 * Refine usage of FF-A memory sharing 'clear memory flag'.
205* Misc
206 * Improved extended memory address ranges support:
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500207 * 52 bits PA (`FEAT_LPA`/`FEAT_LPA2`) architecture extension detected
Olivier Deprez79e95222022-05-09 17:21:08 +0200208 results in limiting the EL2 Stage-1 physical address range to 48 bits.
209 * In the FF-A memory sharing operations, harden address width checks on
210 buffer mapping.
211 * Improved MP SP and S-EL0 partitions support
212 * The physical core index is passed to a SP vCPU0 on booting.
213 * Added MP SP and S-EL0 partitions boot test coverage.
214 * Emulate SMCCC VERSION to the primary VM.
215 * Memory config registers (non-secure and secure virtualization control and
216 translation table base) moved to the vCPU context.
217 * EL2 stage 1 mapping extended to 1TB to support systems with physical
218 address space larger than 512GB.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500219 * `FFA_RUN` ABI hardened to check the vCPU index matches the PE index onto
Olivier Deprez79e95222022-05-09 17:21:08 +0200220 which a vCPU is requested to run.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500221 * Fixed missing ISB after `CPTR_EL2` update upon PE initialization.
Olivier Deprez79e95222022-05-09 17:21:08 +0200222 * Fixed stage 2 default shareability to inner shareable (from non-shareable)
223 to better support vCPU migration.
224 * Fixed manifest structure allocation from BSS rather than stack
225 at initialization.
226 * Fixed an issue with FF-A memory reclaim executed after memory donate
227 resulting in a returned error code.
228* Build and test environment
229 * Add the ability to use an out-of-tree toolchain.
230 * Primary intent is to permit building Hafnium on Aarch64 hosts.
231 * CI runs using the toolchain versioned in prebuilts submodule.
232 A developer can still use this version as well.
233 * Introduce an assert macro enabled by a build option on the command line.
234 Assertions are checked by default. Production builds can optionally
235 disable assertions.
236 * Added manifest options to permit loading VMs using an FF-A manifest.
237* CI
238 * Added job running the Hypervisor + SPMC configuration on patch
239 submissions.
240 * FVP
241 * Enable secure memory option.
242 * Remove restriction on speculative execution options.
243 * Updated to use model version 11.17 build 21.
244 * Updated linux submodule to v5.10.
245 * VHE EL0 partitions tests automated through jenkins.
246
247#### Known limitations:
248* FF-A v1.1 EAC0 implementation is partial mainly on interrupt handling and
249 memory sharing.
250* Hafnium limits physical interrupt IDs to 64. The legacy virtual interrupt
251 controller driver limits to 64. The recent addition of physical interrupt
252 handling in the SPMC through the GIC assumes a 1:1 mapping of a physical
253 interrupt ID to a virtual interrupt ID.
254* Secure timer virtualization is not supported.
255* The security state of memory or device region cannot be specified in a SP
256 manifest.
257
Olivier Deprez55b74f82021-11-10 11:32:31 +0100258## v2.6
259#### Highlights
260* FF-A Setup and discovery
261 * FF-A build time version updated to v1.1.
262 * Managed exit and notifications feature support enabled in SP manifests.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500263 * Updated `FFA_FEATURES` to permit discovery of managed exit, schedule receiver,
Olivier Deprez55b74f82021-11-10 11:32:31 +0100264 and notification pending interrupt IDs.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500265 * `FFA_PARTITION_INFO_GET` updated to permit managed exit and notification
Olivier Deprez55b74f82021-11-10 11:32:31 +0100266 support discovery.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500267 * `FFA_SPM_ID_GET` added to permit discovering the SPMC endpoint ID (or the
Olivier Deprez55b74f82021-11-10 11:32:31 +0100268 SPMD ID at the secure physical FF-A instance).
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500269 * `FFA_RXTX_UNMAP` implementation added.
Olivier Deprez55b74f82021-11-10 11:32:31 +0100270* FF-A v1.1 notifications
271 * Added ABIs permitting VM (or OS kernel) to SP, and SP to SP asynchronous
272 signaling.
273 * Added generation of scheduler receiver (NS physical) and notification
274 pending (secure virtual) interrupts.
275 * The schedule receiver interrupt is donated from the secure world SGI
276 interrupt ID range.
277* FF-A v1.1 interrupt handling
278 * Added a GIC driver at S-EL2 permitting to trap and handle non-secure and
279 secure interrupts while the secure world runs.
280 * Added forwarding and handling of a secure interrupt while the normal world
281 runs.
282 * Added secure interrupt forwarding to the secure partition that had the
283 interrupt registered in its partition manifest.
284 * The interrupt deactivation happens through the Hafnium para-virtualized
285 interrupt controller interface.
286 * vCPU states, run time models and SP scheduling model are revisited as per
287 FF-A v1.1 Beta0 specification (see 'Known limitations' section below).
288* S-EL0 partitions support
289 * Added support for VHE architecture extension in the secure world (through
290 a build option).
291 * A partition bootstraps as an S-EL0 partition based on the exception-level
292 field in the FF-A manifest.
293 * It permits the implementation of applications on top of Hafnium without
294 relying on an operating system at S-EL1.
295 * It leverages the EL2&0 Stage-1 translation regime. Apps use FF-A
296 ABIs through the SVC conduit.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500297 * Added FF-A v1.1 `FFA_MEM_PERM_GET/SET` ABIs permitting run-time update of
Olivier Deprez55b74f82021-11-10 11:32:31 +0100298 memory region permissions.
299 * It supersedes the existing S-EL1 shim architecture (without removing its
300 support).
301 * S-EL1 SP, S-EL0 SP or former S-EL0 SP+shim can all co-exist in the same
302 system.
303* SVE
304 * Support for saving/restoring the SVE live state such that S-EL2/Hafnium
305 preserves the normal world state on world switches.
306 * Secure partitions are permitted to use FP/SIMD while normal world uses
307 SVE/SIMD/FP on the same core.
308 * The SVE NS live state comprises FPCR/FPSR/FFR/p[16]/Z[32] registers.
309* LLVM/Clang 12
310 * The toolchain stored in prebuilts submodule is updated to LLVM 12.0.5.
311 * Build/static analyzer fixes done in the top and third party projects.
312 * Linux sources (used by the test infrastructure) are updated to 5.4.148.
313 The linux test kernel module build is updated to only depend on LLVM
314 toolchain.
315* Hafnium CI improvements
316 * Added two configurations permitting Hafnium testing in the secure world.
317 * First configuration launches both the Hypervisor in the normal world
318 and the SPMC in the secure world. This permits thorough FF-A ABI testing
319 among normal and secure world endpoints.
320 * The second configuration launches the SPMC alone for component testing
321 or SP to SP ABI testing.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500322 * Hafnium CI Qemu version updated to v6.0.0 (implements VHE and `FEAT_SEL2`
Olivier Deprez55b74f82021-11-10 11:32:31 +0100323 extensions).
324* FF-A compliance fixes
325 * Added checks for valid memory permissions values in manifest memory and
326 device regions declarations.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500327 * `FFA_FEATURES` fixed to state indirect messages are not supported by
Olivier Deprez55b74f82021-11-10 11:32:31 +0100328 the SPMC.
329 * Limit an SP to emit a direct request to another SP only.
330 * Memory sharing: fixed input validation and return values.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500331 * `FFA_RXTX_MAP` fixed returned error codes.
332 * `FFA_MSG_WAIT` input parameters check hardened.
Olivier Deprez55b74f82021-11-10 11:32:31 +0100333
334#### Known limitations:
335* S-EL0 partitions/VHE: the feature is in an experimental stage and not all use
336 cases have been implemented or tested. Normal world to SP and SP to SP memory
337 sharing is not tested. Interrupt handling is not tested.
338* The current implementation does not support handling a secure interrupt that
339 is triggered while currently handling a secure interrupt. This restricts to
340 scenarios described in Table 8.13 and Table 8.14 of the FF-A v1.1 Beta0
341 specification. Priority Mask Register is not saved/restored during context
342 switching while handling secure interrupt.
343* Hafnium CI: scenarios involving the Hypervisor are left as test harness
344 purposes only, not meant for production use cases.
Daniel Boulbyccb70682021-04-28 19:40:39 +0100345
346## v2.5
347#### Highlights
348* BTI/Pointer authentication support
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500349 * Add branch protection build option for `FEAT_PAuth` and `FEAT_BTI` to the
Daniel Boulbyccb70682021-04-28 19:40:39 +0100350 clang command line. This only affects the S-EL2 image.
351 * Enable pointer authentication by supplying a platform defined pseudo
352 random key.
353 * Enable BTI by setting the guarded page bit in MMU descriptors for
354 executable pages.
355* SMMUv3.2 S-EL2 support
356 * Add support for SMMUv3 driver to perform stage 2 translation, protection
357 and isolation of upstream peripheral device's DMA transactions.
358* FF-A v1.0 Non-secure interrupt handling
359 * Trap physical interrupts to S-EL2 when running a SP.
360 * Handle non secure interrupts that occur while an SP is executing,
361 performing managed exit if supported.
362 * Add basic support for the GICv3 interrupt controller for the AArch64
363 platform.
364* FF-A power management support at boot time
365 * Provide platform-independent power management implementations for the
366 Hypervisor and SPMC.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500367 * Implement the `FFA_SECONDARY_EP_REGISTER` interface for an MP SP or SPMC
Daniel Boulbyccb70682021-04-28 19:40:39 +0100368 to register the secondary core cold boot entry point for each of their
369 execution contexts.
370 * Introduce a generic "SPMD handler" to process the power management events
371 that may be conveyed from SPMD to SPMC, such as core off.
372* FF-A Direct message interfaces
373 * Introduce SP to SP direct messaging.
374 * Fix bug in the MP SP to UP SP direct response handling.
375* FF-A Memory sharing interfaces
376 * Introduce SP to SP memory sharing.
377 * When a sender of a memory management operation reclaims memory, set the
378 memory regions permissions back to it's original configuration.
379 * Require default permissions to be supplied to the function
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500380 `ffa_memory_permissions_to_mode`, so in the case where no permissions are
Daniel Boulbyccb70682021-04-28 19:40:39 +0100381 specified for a memory operation, the data and instruction permissions can
382 be set to the default.
383 * Encode Bit[63] of the memory region handle according to if the handle is
384 allocated by the Hypervisor or SPMC.
385* FF-A v1.0 spec compliance
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500386 * Return `INVALID_PARAMETER` error code instead of `NOT_SUPPORTED` for direct
Daniel Boulbyccb70682021-04-28 19:40:39 +0100387 messaging interfaces when an invalid sender or receiver id is given.
388 * Check that reserved parameter registers are 0 when invoking direct
389 messaging ABI interfaces.
390 * For SMC32 compliant direct message interfaces, only copy 32-bits
391 parameter values.
392 * Change the FF-A error codes to 32-bit to match the FF-A specification.
393 * Fix consistency with maintaining the calling convention bit of the
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500394 func id between the `ffa_handler` and the `FFA_FEATURES` function.
Daniel Boulbyccb70682021-04-28 19:40:39 +0100395* Remove primary VM dependencies in the SPMC
396 * Treat normal world as primary VM when running in the secure world.
397 * Create an SPMC boot flow.
398* Hafnium CI
399 * Enable Hafnium CI to include tests for Hafnium SPMC.
400 * Add basic exception handler to service VM's.
401* SIMD support
402 * Add saving/restoring of other world FP/NEON/SIMD state when entering and
403 exiting the SPMC.
404* SPMC early boot cache fix
405 * Import data cache clean and invalidation helpers from TF-A project and
406 provide an arch module for cache operations.
407 * Invalidate the SPMC image in the data cache at boot time to prevent
408 potential access to stale cache entries left by earlier boots stages.
409* Misc and bug fixes
410 * Complete vCPU state save prior to normal world exit.
411 * Update S-EL2 Stage-1 page table shareability from outer to inner.
412 * Add PL011 UART initialization code to set the IDRD and FBRD registers
413 according to the UART clock and baud rate specified at build time.
414 * License script checker fixes.
415
416#### Known limitations:
417* Secure interrupts not supported.
418* FF-A indirect message interface not supported in the secure world.
419* Only supporting models of MultiProcessor SP (vCPUs pinned to physical
420 CPUs) or UniProcessor SP (single vCPU).
421* The first secure partition booted must be a MP SP.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500422* `FFA_RXTX_UNMAP` not implemented.
Daniel Boulbyccb70682021-04-28 19:40:39 +0100423* Use of an alternate caller provided buffer from RX/TX buffers for memory
424 sharing operations is not implemented.
425* A memory retrieve request to SPMC does not support the caller endpoint to
426 provide the range of IPA addresses to map the region to.
Olivier Deprez62405ad2020-10-26 18:51:49 +0100427
428## v2.4
429
430This is the first drop to implement the TrustZone secure side S-EL2 firmware
Olivier Deprez410a3ac2020-11-04 13:54:15 +0100431(SPM Core component) complying with FF-A v1.0.
Olivier Deprez62405ad2020-10-26 18:51:49 +0100432It is a companion to the broader TF-A v2.4 release.
433The normal world Hypervisor is maintained functional along with the
434Hafnium CI test suite.
435
Daniel Boulbyccb70682021-04-28 19:40:39 +0100436#### Highlights
Olivier Deprez62405ad2020-10-26 18:51:49 +0100437* FF-A v1.0 Setup and discovery interface
438 * Hypervisor implementation re-used and extended to the SPMC and SPs.
439 * Added partition info get ABI and appropriate properties response depending
440 on partition capabilities (PVM, Secondary VM or Secure Partitions).
441 * FF-A device-tree manifest parsing.
442 * FF-A partitions can declare memory/device regions, and RX/TX buffers that
443 the SPMC sets up in the SP EL1&0 Stage-2 translation regime at boot time.
444 * FF-A IDs normal and secure world split ranges.
445 * The SPMC maps the Hypervisor (or OS kernel) RX/TX buffers as non-secure
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500446 buffers in its EL2 Stage-1 translation regime on `FFA_RXTX_MAP` ABI
Olivier Deprez62405ad2020-10-26 18:51:49 +0100447 invocation from the non-secure physical FF-A instance.
448* FF-A v1.0 Direct message interface
449 * Added implementation for the normal world Hypervisor and test cases.
450 * Implementation extended to the SPMC and SPs.
451 * Direct message requests emitted from the PVM to a Secondary VM or a
452 Secure Partition (or OS Kernel to a Secure Partition). Direct message
453 responses emitted from Secondary VMs and Secure Partitions to the PVM.
454 * The secure world represents the "other world" (normal world Hypervisor
455 or OS kernel) vCPUs in an abstract "Hypervisor VM".
456* FF-A v1.0 memory sharing
457 * Hypervisor implementation re-used and extended to the SPMC and SPs.
458 * A NS buffer can be shared/lent/donated by a VM to a SP (or OS Kernel
459 to a SP).
460 * The secure world configures Stage-1 NS IPA output to access the NS PA
461 space.
462 * The secure world represents the "other world" (normal world Hypervisor
463 or OS kernel) memory pages in an abstract "Hypervisor VM" and tracks
464 memory sharing permissions from incoming normal world requests.
465* Secure world enablement
Olivier Deprez410a3ac2020-11-04 13:54:15 +0100466 * Secure Partitions booted in sequence on their primary execution context,
467 according to the boot order field in their partition manifest.
468 This happens during the secure boot process before the normal world
469 actually runs.
Olivier Deprez62405ad2020-10-26 18:51:49 +0100470 * The SPMC implements the logic to receive FF-A messages through the EL3
471 SPMD, process them, and either return to the SPMD (and normal world) or
472 resume a Secure Partition.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500473 * Extract NS bit from `HPFAR_EL2` on Stage-2 page fault.
Olivier Deprez62405ad2020-10-26 18:51:49 +0100474 * Prevent setup of LOR regions in SWd.
475 * Avoid direct PSCI calls down to EL3.
476* Platforms
477 * Added Arm FVP secure Hafnium build support.
478 * Added Arm TC0 "Total Compute" secure Hafnium build support.
479* Other improvements
480 * Re-hosting to trustedfirmware.org
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500481 * `busy_secondary` timer increased to improve CI stability.
Olivier Deprez62405ad2020-10-26 18:51:49 +0100482 * Removed legacy Hypervisor calls.
Demi Marie Obenour1a55b772023-02-15 10:38:26 -0500483 * Fix `CPTR_EL2` TTA bit position.
484 * Report `FAR_EL2` on injecting EL1 exception.
Daniel Boulbyccb70682021-04-28 19:40:39 +0100485#### Known limitations:
486* Not all fields of the FF-A manifest are actually processed by the Hafnium
487 device-tree parser.
488* SP to SP communication not supported.
489* SP to SP memory sharing not supported.
490* S-EL1 and SIMD contexts shall be saved/restored by EL3.
491* Multi-endpoint memory sharing not supported.
492* Interrupt management limited to trapping physical interrupts to
493 the first S-EL1 SP. Physical interrupt trapping at S-EL2 planned as
494 next release improvement.
495* Validation mostly performed using first SP Execution Context (vCPU0). More
496 comprehensive multicore enablement planned as next release improvement.