1<!-- SPDX-License-Identifier: CC-BY-SA-4.0 -->
2
3# Revision History for seL4
4
5<!--
6    Document maintainers: Wrap lines in this file at 120 characters.
7
8    Kernel engineers: When making changes to code (rather than documentation or comments) in the kernel repository,
9    include a change item entry here, at the end of the list for the upcoming release, describing the change, and
10    evaluate whether the compatibility breakage level must be promoted as a consequence.  As some rules of thumb:
11    * If the change affects only the sources of the kernel (`src/`, `/include`), it is a BINARY-COMPATIBLE change.
12    * If the change adds visible C preprocessor or language symbols in `libsel4/`, it is a BINARY-COMPATIBLE change.
13    * If the change alters existing symbol definitions, types, or implementations in `libsel4/`, it is a
14      SOURCE-COMPATIBLE change.
15    * Otherwise, it is BREAKING.
16-->
17
18The following is a high-level description of changes to the seL4 kernel project, grouped by release.  It is aimed at
19engineers who desire a summary of changes in more coarse-grained form than the Git commit history.  Each release
20description indicates whether it is SOURCE-COMPATIBLE, BINARY-COMPATIBLE, or BREAKING relative to the previous release.
21
22Further information about [seL4 releases](https://docs.sel4.systems/sel4_release/) is available.
23
24---
25Upcoming release: BINARY COMPATIBLE
26
27## Changes
28
29 * Added support for the ARM Cortex A55
30 * Added support for the ODroid C4
31 * Rename libsel4 config option ENABLE_SMP_SUPPORT to CONFIG_ENABLE_SMP_SUPPORT to be namespace compliant.
32 * Rename libsel4 config option AARCH64_VSPACE_S2_START_L1 to CONFIG_AARCH64_VSPACE_S2_START_L1 to be namespace
33   compliant.
34* Remove imx31/kzm platform support. This platform is being removed as it is sufficiently old and unused.
35* Remove ARM1136JF_S and ARMv6 support. This architecture version is being removed as it is sufficiently old and
36  unused. See https://sel4.atlassian.net/browse/RFC-8.
37* Remove ARMv6 specific configs: KernelGlobalsFrame and KernelDangerousCodeInjectionOnUndefInstr. This removes the
38  constant seL4_GlobalsFrame from libsel4.
39* Implement KernelArmExportPTMRUser and KernelArmExportVTMRUser options for Arm generic timer use access on aarch32.
40
41## Upgrade Notes
42---
4312.1.0 2021-06-10: SOURCE COMPATIBLE
44
45## Changes
46
47* Moved kernel configuration header to libsel4.
48* Improved benchmarking:
49  - Made the kernel log buffer to be derived from cmake config.
50  - Added x86_64 kernel log buffer.
51  - Implemented RISC-V benchmark timestamping.
52  - Implemented benchmark log buffer for RISC-V.
53* Moved cap functions out of inline to make changing cap bitfields less noisy.
54* Removed weak definition of the __sel4_ipc_buffer variable which was causing large thread local storages to be
55  required.
56* Prepared the bitfield generator for Isabelle 2021.
57* Made a number of improvements to the CMake build scripts.
58* Added pre-processor 'include guards' for auto-generated files.
59* Added missing CONFIG_PLAT_IMX7 pre-processor '#define's.
60* Added `#pragma once` to the autoconf headers.
61* Removed `HAVE_AUTOCONF` guards in `sel4/config.h`.
62* Improved the manual:
63  - Corrected descriptions of CNode addressing.
64  - Documented initial thread's SMMU caps.
65* Improved libsel4:
66  - Removed redundant `HAVE_AUTOCONF` header guards in libsel4.
67  - Added missing `macros.h` #include in libsel4.
68  - Cleaned-up `macros.h` in libsel4.
69  - Added checks to use `_Static_assert()` in libsel4 if it is available.
70  - Unified definitions in `simple_types.h` in libsel4.
71  - Added `printf` format specifier `PRI_sel4_word` for printing word types.
72  - Unified seL4 type definitions.
73* Added specific `printf` formatting for seL4_Word.
74* Changed some variables to use `BOOT_BSS` instead of `BOOT_DATA` to save space in the ELF file.
75* Replaced the `capDL()` function with a generic `debug_capDL` function that is intended to be implemented by all
76  architectures.
77* Reduced `printf`s stack usage.
78* Fixed `ksnprintf()` corner case handling.
79* Fixed NULL `printf` output wrapper handling.
80* Cleaned up the printing API implementation.
81* Changed code to pass buffer to `printf` output channel.
82* Refactored the kernel console handling.
83* Added support for `PRIu64` and `SEL4_PRIu_word` in the kernel.
84* Changed various `printf` conversion specifiers to use `SEL4_PRIx_word` specifiers.
85
86### MCS
87
88* Fixed a physical counter access issue on MCS on EL2.
89* Added MCS support for the ZynqMP.
90* Changed invokeSchedControl_Configure to always produce a scheduling context that is active and has configured
91  refills.
92* Prevented the binding of scheduling contexts to blocked TCBs.
93* Fixed conversions of ticks to microseconds on aarch64.
94* Added an additional sporadic flag to `seL4_SchedControl_Configure` which allows the option to create a sporadic
95  scheduling context.
96* Added explicit checks to not unblock the current scheduling context.
97* Fixed MCS and aarch64 VCPU interrupt interaction.
98* Renamed MCS kernel configuration option `KernelStaticMaxBudgetUs` to `KernelStaticMaxPeriodUs`.
99* Added check to make sure that the current thread will not yield to multiple threads.
100* Added check to account for an inactive scheduling context at preemption.
101* Deferred charging time budget in a preempted invocation.
102* Added code to update `ksDomainTime` in `updateTimestamp`.
103* Added call to `updateTimestamp` in a preemption point.
104* Added code to clear ksConsume when charging time to a revoked scheduling context.
105* Added code to cancel IPC when finalising reply caps.
106* Fixed a dereference of a scheduling context after it's removed from the associated TCB.
107* Added MCS to the preprocess check.
108
109### x86
110
111* Removed a redundant de-reference for `seL4_X86DangerousRDMSR` in ia32.
112* Added a config option to set the frequency of the TSC.
113* Optimized the boot image size for x86_64.
114* Removed the PT_PHDR segment from the linker script to work around an issue in a variant of syslinux that treats a
115  PT_PHDR segment as distinct from a PT_LOAD segment.
116
117### Arm
118
119* FPU ownership is now also given away on thread deletion instead of only on FPU exception.
120* Added basic build support for A35 core.
121* Fixed read/write of the VCPU CPACR register.
122* Fixed invalidation of the VIPI I-cache in hypervisor mode.
123* Removed duplicate interrupts for the zynqmp in its DTS.
124* Updated device definitions for the exynos5.
125* Added Raspberry Pi 4 support.
126* Updated Ethernet interrupts in the ZynqMP.
127* Added i.MX6 Nitrogen6_SoloX support.
128* Fixed CMake configurations for the ZynqMP and the Ultra96.
129* Fixed the platform `#define` for the i.MX6 Nitrogen6_SoloX.
130* Fixed I-cache invalidation on aarch64 SMP.
131* Fixed the usage of KernelPaddrUserTop on Arm platforms.
132* Added support for the i.MX low-power UART.
133* Added an option to ignore SErrors which is enabled on default for the TX2.
134
135### RISC-V
136
137* Added PLIC driver and updated the DTS for the Ariane.
138* Merged the PLIC drivers for the Ariane and the Hifive.
139* Updated default timer frequency for the Ariane.
140* Map devices with large pages on 32 and 64-bit kernel.
141* Replaced mentions of BBL with OpenSBI.
142* Added definitions of the KernelOpenSBIPlatform variable for RISC-V platforms.
143* Removed instances of passing `extra_caps_t` by value for binary verification purposes.
144* Removed `slot_range_t` for binary verification purposes.
145* Removed `DONT_TRANSLATE` tag on 'read_sip' for binary verification purposes.
146* Added more efficient clz and ctz implementations to substitute the lack of machine instructions to count leading and
147  trailing zeroes.
148* Updated kernel bootstrap message to be the same as the one on Arm.
149* Added some fastpath improvements for RISC-V.
150* Added extra snippets of code to track kernel entries for RISC-V.
151* Added a configuration guard for fastpath on RISC-V.
152* Reorganised `traps.S` so that syscalls and fastpath checks were done after interrupts and exceptions checks to avoid
153  exceptions being interpreted as null-syscalls.
154* Added support for `riscv64-elf-` toolchain.
155* Fixed a register bug in the assembly entry point for SMP with regards to the elfloader passing HART and core IDs.
156
157## Upgrade Notes
158
159* Scheduling contexts can now be configured as constant-bandwidth or sporadic server.
160  - Constant bandwidth observes a continuous constant bandwidth of budget/period.
161  - Sporadic server behaves as described by Sprunt et. al.
162  - In an overcommitted system, sporadic preserves accumulated time.
163* There are new `PRIx` and `SEL4_PRIx` `printf` conversion specifiers that can now be used inside the kernel.
164* x86_64 kernel binaries are now smaller and may be structured differently compared to previous kernel binaries.
165* Kernel entry benchmarking can now be done on RISC-V.
166* AUTOCONF_INCLUDED is no longer defined. The seL4 build system has stopped
167  using autoconf a long time ago and this define has been kept for compatibility
168  since then. It is no longer used anywhere by now, so it can be removed.
169
170---
17112.0.0 2020-10-30: BREAKING
172## Changes
173
174
175* Update licensing to reflect project transfer to seL4 Foundation. SPDX tags are now used to identify the licenses for
176  each file in the project. Generally, kernel-level code is licensed under GPLv2 and user-level code under the 2-clause
177  BSD license.
178* Update contribution guidelines:
179  * the seL4 foundation requires DCO process instead of a CLA
180* Functional correctness verification for the RISC-V 64-bit HiFive Unleashed platform configuration
181  (RISCV64_verified.cmake with no fastpath or FPU enabled)
182* Update caveats file:
183  - The recycle operation has been removed
184  - More detail on what versions are verified
185  - Update comments on real time use of seL4
186* Improve seL4 manual.
187  - Fix aarch64 seL4_ARM_PageDirectory object API docs:
188    seL4_ARM_PageDirectory_Map is passed a vspace cap not an upper page directory cap.
189  - Increase documentation coverage for Arm object invocations
190  - Rework introduction of system calls in Kernel Services and Objects chapter.
191  - Improve discussion of Receive and Wait syscall behaviour between MCS and non-MCS systems.
192  - Explicitly mention grantreply rights in the exceptions section.
193  - Document schedcontext size_bits meaning.
194  - Remove metion of system criticality.
195  - Add SchedContext to object size discussion.
196  - Fix initial thread's CNode guard size.
197  - Update BootInfo struct table.
198  - Update padding field in UntypedDesc table
199* Update seL4_DebugSnapshot to provide a CapDL dump of the capability layout of
200  a running system for Arm, x86_64 and riscv32 configurations.
201* KernelBenchmarksTrackUtilisation:
202  - Add feature support for SMP configurations
203  - For each thread also track number of times scheduled, number of kernel entries and amount of cycles spent inside the
204    kernel and also add core-wide totals for each.
205* Add 2 new benchmark utilization syscalls
206  - seL4_BenchmarkDumpAllThreadsUtilisation: Prints a JSON formatted record of total and per-thread utilisation
207    statistics about the system. This currently includes a thread's total cycles scheduled, total number of times
208    scheduled, total cycles spent in the kernel and total number of times entering the kernel and then totals of each
209    for all threads on the current core.
210  - seL4_BenchmarkResetAllThreadsUtilisation: Resets the current counts of every user thread on the current core.
211* Added seL4_DebugPutString libsel4 function for printing a null-terminated string via calling seL4_DebugPutChar().
212* Introduced a new config flag, KernelInvocationReportErrorIPC, to enable userError format strings to be written to
213  the IPC buffer. Another config bool has been introduced to toggle printing the error out and this can also be set at
214  runtime. LibSel4PrintInvocationErrors is a libsel4 config used to print any kernel error messages reported in the IPC
215  buffer.
216* Repair barriers in clh_lock_acquire (SMP kernel lock). Strengthen the clh_lock_acquire to use release on the
217  atomic_exchange that makes the node public. Otherwise, (on ARM & RISCV) the store to the node value which sets its
218  state to CLHState_Pending can become visible some time after the node is visible. In that window of time, the next
219  thread which attempts to acquire the lock will still see the old state (CLHState_Granted) and enters the critical
220  section, leading to a mutual exclusion violation.
221* Replace all #ifdef header guards with #pragma once directives in libsel4 header files
222* gcc.cmake:
223  - Add option for coloured gcc output. Setting GCC_COLORS in the environment will result in -fdiagnostics-color=always
224    being provided to gcc. Ordinarily gcc would suppress coloured output when ninja redirects its stderr during normal
225    builds.
226  - Remember CROSS_COMPILER_PREFIX across CMake invocations. The variable would become unset in certain contexts.
227  - Add support for Arm cross-compilers on Red Hat distros.
228* Fastpath optimisation:
229  - Reorganise the code layout on Arm.
230  - bitfield_gen: explicit branch predictions.
231  - Optimize instruction cache access for fastpath.
232* Extend Clang support to all kernel configurations. Support targets LLVM versions between 9 and 11.
233* hardware_gen.py: Add elfloader output target for hardware_gen script. This generates header files describing the
234  platform's CPU configuration as well as device information such as compatibility strings and memory regions to the
235  elfloader that are consistent with the kernel's own definitions.
236* Fix bootinfo allocation bug when user image pushed against page directory boundary. The bootinfo is mapped in at the
237  end of the user image in the initial thread's vspace. The kernel initialisation code wasn't calculating the
238  bootinfo size correctly which could lead to a kernel fault when trying to map the bootinfo in when the parent page
239  table object hadn't been allocated.
240* Use autoconf definition for `RetypeMaxObjects` in <sel4/types.h>. This ensures that the definition stays consistent
241  with what the kernel is configured with.
242* Fix up timers and clock frequencies
243  - Remove beaglebone kernel timer prescaling. Previously the timer frequency was incorrectly set to to half (12MHz) its
244    configured frequency (24MHz).
245  - Set TX1 kernel timer frequency config to 12MHz and not 19.2MHz as this is the standard frequency of the input clock
246    source (m_clock).
247  - Set KZM kernel timer frequency config to 35MHz and not 18.6MHz based on sampling the timer frequency.
248  - imx31: add missing dts entry for the epit2 timer.
249  - Set non-mcs i.MX6 kernel timer frequency config to 498MHz and not 400MHz as this is based on the frequency of the
250    input clock source (PLL1)
251  - Zynq7000: Set kernel timer frequency to 320MHz.
252  - Qemu-arm-virt: Set kernel timer frequency to 6.25MHz.
253* Do not generate data symbols for enums in libsel4 as they end up as bss symbols and cause linker errors on newer
254  compiler versions.
255* Update padding field definition in seL4_UntypedDesc to make the struct word aligned. Previously, this struct wasn't
256  correctly word aligned on 64-bit platforms. This change removes the padding1 and padding2 fields and replaces them
257  with a padding field that is a variable number of bytes depending on the platform.
258* Add GitHub actions scripts. These scripts replicate internal CI checks directly on GitHub
259
260### MCS
261
262* Stop scheduling contexts from being bound to tcb's that already have scheduling contexts.
263* Fix x86 `KERNEL_TIMER_IRQ` definition. Previously, MCS preemption point handling would check the wrong interrupt on
264  x86 platforms.
265* smp: tcb affinity modification bug. When changing the affinity of a thread on a remote core, the reschedule
266  operation wasn't being performed.
267* Allow `replyGrant` for fault handlers. The MCS kernel so far insisted on full grant rights for fault handler caps,
268  but replyGrant is sufficient and consistent with the default kernel config.
269* All scheduling contexts compare their time with time in assigned core instead of currently executing core.
270* Prevent recursion on timeout faults by suspending a passive server that receives a timeout fault.
271* Add KernelStaticMaxBudgetUs to bound the time the user provides to configure scheduling contexts to avoid malicious
272  or erroneous overflows of the scheduling math. Make the default max period/budget 1 hour.
273* rockpro64: enable mcs configurations
274
275### Arm
276
277* arm: Add seL4_BenchmarkFlushL1Caches syscall to manually flush L1 caches in benchmark configurations.
278* New fault type when running in Arm hypervisor mode: seL4_Fault_VPPIEvent
279    - The kernel can keep track of IRQ state for each VCPU for a reduced set of PPI IRQs and deliver IRQ events as
280      VCPU faults for these interrupt numbers.
281    - Additionally a new VCPU invocation is introduced: seL4_ARM_VCPU_AckVPPI.
282      This is used to acknowledge a virtual PPI that was delivered as a fault.
283* Virtualise Arm Timer and VTimer interrupts to support sharing across VCPUs.
284  - A VCPU will now save and restore VTimer registers for the generic timer and also deliver a VTimer IRQ via a
285    seL4_Fault_VPPIEvent fault. This enables multiple VCPUs bound to the same physical core to share this device.
286* Build config option for whether WFE/WFI traps on VCPUs when running in Arm hypervisor mode
287* Arm: Add VMPIDR and VMPIDR_EL2 registers to VCPU objects for programming a VCPU's 'Virtualization Multiprocessor
288  ID Register' on aarch32 and aarch64.
289* Arm, vcpu, smp: Remote IPI call support for VIRQS. Injecting a VIRQ into a vcpu running on a different core will
290  IPI the remote core to perform the IRQ injection.
291* zynqmp: Disable hardware debug APIs as the platform doesn't support kernel hardware debug API.
292* zynqmp: Add support for aarch32 hyp
293* Gicv3: include cluster id when sending ipis.
294* qemu-arm-virt:
295  - Generate platform dtb based on KernelMaxNumNodes config value.
296  - Reserve the first 512MiB of Ram as device untyped for use in virtualization configurations.
297
298#### Aarch32
299
300* Moved TPIDRURO (PL0 Read-Only Thread ID register) to TCB register context from VCPU registers. This means
301  changes to this register from user level have to go via seL4_TCB_Write Registers instead of seL4_ARM_VCPU_WriteRegs.
302* aarch32: Restrict cache flush operation address range in hyp mode. It's required that cache flushing in hyp mode
303  is performed through the kernel window mapping as the kernel is unable to flush addresses outside of this mapping
304  without causing an access fault.
305* arm_hyp: Move PGD definitions out of libsel4 as they don't correspond to any public interfaces and are only used
306  internally by the kernel to manage its own address space.
307
308#### Aarch64
309
310* aarch64: Fix a bug where saving ELR_EL1 when managing a VCPU object was reading from ELR_EL1 instead of writing to it.
311* aarch64: Fix a bug where saving FAR_EL1 when managing a VCPU object was only writing to the low 32 bits of the 64-bit
312  FAR_EL1 register.
313* aarch64: Add missing faults to seL4_getArchFault. seL4_getArchFault is a libsel4 helper that constructs fault messages
314  out of the IPC buffer message registers but it wasn't aware of all possible fault types.
315* aarch64,vcpu: Add CNTKCTL_EL1 register to `vcpu_t`. This register tracks timer delegation to EL0 from EL1 and
316  needs to be switched for different VCPUs.
317* aarch64: Adds missing vcpu cases for some aarch64-specific functions on capabilities.
318* cortex-a53,hyp: Reduce seL4_UserTop when on a cortex-a53 platform and KernelArmHypervisorSupport is set.
319  - This is because the kernel uses the last slot in the top level VSpace object for storing the assigned VMID and so
320    any addresses that are addressed by the final slot are not accessible. This would apply to any CPU that have 40bit
321    stage 2 translation input address.
322* Arm SMMUv2 kernel API and TX2 smmuv2 driver. This supports using an SMMU to provide address translation and memory
323  protection for device memory access to platforms that implement a compatible Arm SMMUv2 System mmu. The kernel
324  implementation supports using an SMMU to restrict memory access of VM guest pass-through devices, or for isolating
325  devices and their drivers' memory accesses to the rest of a running system.
326
327### x86
328
329* Fix printf typo in `apic_init`.
330* x86_64: Fix PCID feature constant to use the correct bit.
331* Fix interrupt flag reset upon nested interrupt resume, `c_nested_interrupt`. This fixes an issue where ia32 kernels
332  would crash if receiving a nested interrupt.
333
334### RISC-V
335
336* Functional correctness of seL4/RISCV now formally verified at the C level.
337* Hifive: Enable seL4_IRQControl_GetTrigger object method. This method allocates an IRQ handler by ID and whether it is
338  level or edge triggered. Note: HiFive PLIC interrupts are all positive-level triggered.
339* Add search for additonal gcc riscv toolchains if the first one cannot be found.
340* Add support for rocketchip soc. Support Rocketchip SoC maps to Xilinx ZC706 board and ZCU102 board
341* Add support for polarfire soc.
342* Clear reservation state on slowpath exit as the RISC-V ISA manual requires supervisor code to execute a dummy sc
343  instruction to clear reservations "during a preemptive context switch".
344* Pass DTB through to userlevel in extra bootinfo fields similar to on Arm.
345* Use full width of scause to prevent large exception numbers to be misinterpreted as syscalls.
346* Fix page map bug.
347  - Previously, it was possible in decodeRISCVFrameInvocation for the rwx rights of the new PTE to become 000 after
348    masking with cap rights. This would turn the frame PTE into a page table PTE instead, and allow the user to create
349    almost arbitrary mappings, including to kernel data and code. The defect was discovered in the C verification of the
350    RISC-V port.
351* Remove seL4_UserException_FLAGS. This field was unused and was never set to anything by the kernel.
352* Add FPU config options for RISCV
353  - Two options, KernelRiscvExtD and KernelRiscvExtF, are added to represent the D and F floating-point extensions.
354    KernelHaveFPU is enabled when the floating-point extensions are enabled. The compiler ABI will also be changed to
355    lp64d for hardfloat builds.
356* Add RISCV64_MCS_verified.cmake config for in-progress MCS verification
357* riscv32: Remove incorrectly provided constants for 512MiB 'huge pages' which is not part of the specification.
358* riscv: Lower .boot alignment to 4KiB. This makes the final kernel image more compact.
359
360## Upgrade Notes
361
362* The project's licensing updates don't change the general licensing availability of the sources.
363  More information can be found: https://github.com/seL4/seL4/blob/master/LICENSE.md
364* Any references to the padding1 or padding2 fields in seL4_UntypedDesc require updating to
365  the new padding field. It is expected that these fields are unused.
366* Any platforms that have had changed kernel timer frequencies will see different scheduling
367  behavior as kernel timer ticks will occur at different times as kernel ticks are configured
368  in microseconds but then converted to timer ticks via the timer frequency. Any time-sensitive
369  programs may need to be re-calibrated.
370* Any riscv32 programs that were using the constants RISCVGigaPageBits or seL4_HugePageBits will
371  see a compilation error as the constants have been deleted as they aren't supported in the riscv32 spec.
372* Any riscv programs that refer to the seL4_UserException_FLAGS field will need to remove this reference. This field was
373  never initialised by the kernel previously and has now been removed.
374* Any riscv programs using the LR/SC atomics instructions will see reservations invalidated after kernel entries. It is
375  expected that this will not require any changes as reservations becoming invalid is normal behavior.
376* On cortex-a53 platforms when KernelArmHypervisorSupport is set have 1 less GiB of virtual memory addresses available
377  or 2GiB less on TX2 with the SMMU feature enabled. This is captured by the change in definition of the seL4_UserTop
378  constant that holds the larges virtual address accessible by user level.
379* On aarch32 the TPIDRURO register(PL0 Read-Only Thread ID register) has been removed from the VCPU object and added to
380  the TCB object. A VCPU is typically bound to a TCB so after updating the access, a thread with a VCPU attached will
381  still support having a TPIDRURO managed.
382* On Arm hypervisor configurations, PPI virtual timer interrupts are now delivered via seL4_Fault_VPPIEvent faults and
383  it is not possible to allocate an interrupt handler for these interrupts using the normal interrupt APIs. A VPPI
384  interrupt is received via receiving a fault message on a VCPU fault handler, and acknowledged by an invocation on
385  the VCPU object. VPPI interrupts that target a particular VCPU can only be generated while the VCPU thread is
386  executing.
387
388---
38911.0.0 2019-11-19: BREAKING
390
391## Changes
392
393* Add GrantReply access right for endpoint capabilities.
394 - seL4_Call is permitted on endpoints with either the Grant or the GrantReply access rights.
395 - Capabilities can only be transferred in a reply message if receiver's endpoint capability has the Grant right.
396* `seL4_CapRights_new` now takes 4 parameters
397* seL4_CapRightsBits added to libsel4. seL4_CapRightsBits is the number of bits
398 to encode seL4_CapRights.
399* `seL4_UserTop` added
400  - a new constant in libsel4 that contains the first virtual address unavailable to
401    user level.
402* Add Kernel log buffer to aarch64
403* Support added for Aarch64 hypervisor mode (EL2) for Nvidia TX1 and TX2. This is not verified.
404* Support for generating ARM machine header files (memory regions and interrupts) based on a device tree.
405* Support added for ARM kernel serial driver to be linked in at build time based on the device tree compatibility string.
406* Support added for compiling verified configurations of the kernel with Clang 7.
407* RISC-V: handle all faults
408  - Pass all non-VM faults as user exceptions.
409* arm-hyp: pass ESR in handleUserLevelFault
410* aarch64: return ESR as part of user level fault
411* Created new seL4_nbASIDPoolsBits constant to keep track of max nb of ASID pools.
412* Support added for Hardkernel ODROID-C2.
413* Added extended bootinfo header for device tree (SEL4_BOOTINFO_HEADER_FDT).
414* Support added for passing a device tree from the bootloader to the root task on ARM.
415* Add seL4_VSpaceBits, the size of the top level page table.
416* The root cnode size is now a minimum of 4K.
417* Hifive board support and RISC-V external interrupt support via a PLIC driver.
418* Update seL4_FaultType size to 4bits.
419* Fix seL4_MappingFailedLookupLevel() for EPTs on x86.
420    - add SEL4_MAPING_LOOKUP_NO_[EPTPDPT, EPTPD, EPTPT] which now correspond to
421      the value returned by seL4_MappingFailedLookupLevel on X86 EPT mapping calls.
422* BeagleBone Black renamed from am335x to am335x-boneblack.
423* Supported added for BeagleBone Blue (am335x-boneblue).
424* Remove IPC Buffer register in user space on all platforms
425* Add managed TLS register for all platforms
426* Add configurable system call allowing userspace to set TLS register without capability on all platforms.
427* Non-hyp support added for Arm GICv3 interrupt controller.
428* Add initial support for i.MX8M boards.
429  - Support for i.MX8M Quad evk AArch64 EL2 and EL1, AArch32 smode only is accessible via the imx8mq-evk platform.
430  - Support for i.MX8M Mini evk AArch64 EL2 and EL1, AArch32 smode only is accessible via the imx8mm-evk platform.
431* Add FVP platform with fixed configuration. This currently assumes A57 configuration described in tools/dts/fvp.dts.
432* Arm SMP invocation IRQControl_GetTriggerCore added
433  - Used to route a specify which core an IRQ should be delivered on.
434* Kernel log buffer: Specify on which core an IRQ was delivered.
435* Add new seL4_DebugSendIPI syscall to send arbitrary SGIs on ARM when SMP and DEBUG_BUILD are activated.
436* Support for aarch64-hyp configurations with 40-bit physical addresses (PA) added.
437    - The aarch64 api now refers to VSpaces rather than PageGlobalDirectories,
438      as depending on the PA the top level translation structure can change.
439    - all `seL4_ARM_PageGlobalDirectory` invocations are now `seL4_ARM_VSpace` invocations.
440    - new constants 'seL4_ARM_VSpaceObject` and `seL4_VSpaceIndexBits`.
441* Merged MCS kernel feature.
442  - this is not verified and is under active verification.
443  - The goals of the MCS kernel is to provide strong temporal isolation and a basis for reasoning about time.
444* Moved aarch64 kernel window
445    - aarch64 kernel window is now placed at 0, meaning the kernel can access memory
446      below where the kernel image is mapped.
447* aarch64: Moved TPIDRRO_EL0 (EL0 Read-Only Thread ID register) to TCB register context from VCPU registers. This means
448  changes to this register from user level have to go via seL4_TCB_Write Registers instead of seL4_ARM_VCPU_WriteRegs.
449* Merge ARCH_Page_Remap functionality into ARCH_Page_Map. Remap was used for updating the mapping attributes of a page
450  without changing its virtual address. Now ARCH_Page_Map can be performed on an existing mapping to achieve the same
451  result. The ARCH_Page_Remap invocation has been removed from all configurations.
452* riscv64: Experimental SMP support for RISCV64 on HiFive.
453* Support added for QEMU ARM virt platform, with 3 CPUs: cortex-a15, cortex-a53 and cortex-a57
454    - PLATFORM=qemu-arm-virt
455    - ARM_CPU={cortex-a15, cortex-a53, cortex-a57}
456    - QEMU_MEMORY=1024 (default)
457* Support added for rockpro64.
458* RISCV: Add support for Ariane SoC
459* Unify device untyped initialisation across x86, Arm and RISC-V
460  - Access to the entire physical address range is made available via untypes.
461  - The kernel reserves regions that user level is not able to access and doesn't hand out untypeds for it.
462  - Ram memory is part of this reservation and is instead handed out as regular Untypeds.
463  - Memory reserved for use by the kernel or other reserved regions are not accessible via any untypeds.
464  - Devices used by the kernel are also not accessible via any untypeds.
465
466## Upgrade Notes
467
468* Usages of Endpoints can now use seL4_Call without providing Grant rights by downgrading the Grant to GrantReply
469* The kernel no longer reserves a register for holding the address of a thread's IPC buffer. It is now expected that the
470  location of the IPC buffer is stored in a __thread local variable and a thread register is used to refer to each
471  thread's thread local variables. The sel4runtime is an seL4 runtime that provides program entry points that setup
472  the IPC buffer address and serves as a reference for how the IPC buffer is expected to be accessed.
473* All `seL4_ARM_PageGlobalDirectory` invocations need to be replaced with `seL4_ARM_VSpace`.
474* Usages of ARCH_Page_Remap can be replaced with ARCH_Page_Map and require the original mapping address to be provided.
475* Device untypeds are provided to user level in different sizes which may require more initial processing to break them
476  down for each device they refer to.
477
478---
47910.1.1 2018-11-12: BINARY COMPATIBLE
480
481## Changes
482 * Remove theoretical uninitialised variable use in infer_cpu_gic_id for binary translation validation
483
484## Upgrade Notes
485 * 10.1.0 has a known broken test in the proofs.  10.1.1 fixes this test.
486
487---
48810.1.0 2018-11-07: SOURCE COMPATIBLE
489
490## Changes
491
492 * structures in the boot info are not declared 'packed'
493    - these were previously packed (in the GCC attribute sense)
494    - some field lengths are tweaked to avoid padding
495    - this is a source-compatible change
496 * ARM platforms can now set the trigger of an IRQ Handler capability
497     - seL4_IRQControl_GetTrigger allows users to obtain an IRQ Handler capability
498       and set the trigger (edge or level) in the interrupt controller.
499 * Initial support for NVIDIA Jetson TX2 (ARMv8a, Cortex A57)
500 * AARCH64 support added for raspberry pi 3 platform.
501 * Code generation now use jinja2 instead of tempita.
502 * AARCH32 HYP support added for running multiple ARM VMs
503 * AARCH32 HYP VCPU registers updated.
504 * A new invocation for setting TLSBase on all platforms.
505     - seL4_TCB_SetTLSBase
506 * Kbuild/Kconfig/Makefile build system removed.
507
508---
50910.0.0 2018-05-28: BREAKING
510
511- Final version of the kernel  which supports integration with Kbuild based projects
512- Future versions, including this one, provide a CMake based build system
513
514For more information see https://docs.sel4.systems/Developing/Building.
515
516## Changes
517
518 * x86 IO ports now have an explicit IOPortControl capability to gate their creation. IOPort capabilities  may now only
519   be created through the IOPortControl capability that is passed to the rootserver. Additionally IOPort capabilities
520   may not be derived to have smaller ranges and the IOPortControl will not issue overlapping IOPorts
521 * 32-bit support added for the initial prototype RISC-V architecture port
522
523## Upgrade Notes
524
525 * A rootserver must now create IOPort capabilities from the provided IOPortControl capability. As IOPorts can not
526   have their ranges further restricted after creation it must create capabilities with the final desired granularity,
527   remembering that since ranges cannot overlap you cannot issue a larger and smaller range that have any IO ports
528   in common.
529
530---
5319.0.1 2018-04-18: BINARY COMPATIBLE
532
533## Changes
534 * On 64-bit architectures, the `label` field of `seL4_MessageInfo` is now 52 bits wide. User-level programs
535   which use any of the following functions may break, if the program relies on these functions to mask the
536   `label` field to the previous width of 20 bits.
537     - `seL4_MessageInfo_new`
538     - `seL4_MessageInfo_get_label`
539     - `seL4_MessageInfo_set_label`
540 * Initial prototype RISC-V architecture port. This port currently only supports running in 64-bit mode without FPU or
541   or multicore support on the Spike simulation platform. There is *no verification* for this platform.
542
543## Upgrade Notes
544---
5459.0.0 2018-04-11: BREAKING
546
547= Changes =
548 * Debugging option on x86 for syscall interface to read/write MSRs (this is an, equally dangerous, alternative to
549   dangerous code injection)
550 * Mitigation for Meltdown (https://meltdownattack.com) on x86-64 implemented. Mitigation is via a form of kernel
551   page table isolation through the use of a Static Kernel Image with Microstate (SKIM) window that is used for
552   trapping to and from the kernel address space. This can be enabled/disabled through the build configuration
553   depending on whether you are running on vulnerable hardware or not.
554 * Mitigation for Spectre (https://spectreattack.com) on x86 against the kernel implemented. Default is software
555   mitigation and is the best performing so users need to do nothing. This does *not* prevent user processes from
556   exploiting each other.
557 * x86 configuration option for performing branch prediction barrier on context switch to prevent Spectre style
558   attacks between user processes using the indirect branch predictor
559 * x86 configuration option for flushing the RSB on context switch to prevent Spectre style attacks between user
560   processes using the RSB
561 * Define extended bootinfo header for the x86 TSC frequency
562 * x86 TSC frequency exported in extended bootinfo header
563 * `archInfo` is no longer a member of the bootinfo struct. Its only use was for TSC frequency on x86, which
564   can now be retrieved through the extended bootinfo
565 * Invocations to set thread priority and maximum control priority (MCP) have changed.
566     - For both invocations, users must now provide a TCB capability `auth`
567     - The requested MCP/priority is checked against the MCP of the `auth` capability.
568     - Previous behavior checked against the invoked TCB, which could be subject to the confused deputy
569       problem.
570 * seL4_TCB_Configure no longer takes prio, mcp as an argument. Instead these fields must be set separately
571   with seL4_TCB_SetPriority and seL4_TCB_SetMCPriority.
572 * seL4_TCB_SetPriority and seL4_TCB_SetMCPriority now take seL4_Word instead of seL4_Uint8.
573       - seL4_MaxPrio remains at 255.
574 * seL4_TCB_SetSchedParams is a new method where MCP and priority can be set in the same sytsem call.
575 * Size of the TCB object is increased for some build configurations
576
577= Upgrade notes =
578 * seL4_TCB_Configure calls that set priority should be changed to explicitly call seL4_TCB_SetSchedParams
579   or SetPriority
580 * seL4_TCB_Configure calls that set MCP should be changed to explicitly call seL4_TCB_SetSchedParams
581   or seL4_TCB_SetMCPriority
582
583---
5848.0.0 2018-01-17
585
586= Changes =
587 * Support for additional zynq platform Zynq UltraScale+ MPSoC (Xilinx ZCU102, ARMv8a, Cortex A53)
588 * Support for multiboot2 bootloaders on x86 (contributed change from Genode Labs)
589 * Deprecate seL4_CapData_t type and functions related to it
590 * A fastpath improvement means that when there are two runnable threads and the target thread is the highest priority
591in the scheduler, the fastpath will be hit. Previously the fastpath would not be used on IPC from a high priority
592thread to a low priority thread.
593 * As a consequence of the above change, scheduling behaviour has changed in the case where a non-blocking IPC is sent
594between two same priority threads: the sender will be scheduled, rather than the destination.
595 * Benchmarking support for armv8/aarch64 is now available.
596 * Additional x86 extra bootinfo type for retrieving frame buffer information from multiboot 2
597 * Debugging option to export x86 Performance-Monitoring Counters to user level
598
599= Upgrade notes =
600 * seL4_CapData_t should be replaced with just seL4_Word. Construction of badges should just be `x` instead of
601   `seL4_CapData_Badge_new(x)` and guards should be `seL4_CNode_CapData_new(x, y)` instead of
602   `seL4_CapData_Guard_new(x, y)`
603 * Code that relied on non-blocking IPC to switch between threads of the same priority may break.
604
605---
6067.0.0 2017-09-05
607
608= Changes =
609 * Support for building standalone ia32 kernel added
610 * ia32: Set sensible defaults for FS and GS selectors
611 * aarch64: Use tpidrro_el0 for IPC buffer instead of tpidr_el0
612 * More seL4 manual documentation added for aarch64 object invocations
613 * Default NUM_DOMAINS set to 16 for x86-64 standalone builds
614 * libsel4: Return seL4_Error in invocation stubs in 8fb06eecff9 ''' This is a source code level breaking change '''
615 * Add a CMake based build system
616 * x86: Increase TCB size for debug builds
617 * libsel4: x86: Remove nested struct declarations ''' This is a source code level breaking change '''
618 * Bugfix: x86: Unmap pages when delete non final frame caps
619
620= Upgrade notes =
621 * This release is not source compatible with previous releases.
622 * seL4 invocations that previously returned long now return seL4_Error which is an enum. Our libraries have already
623   been updated to reflect this change, but in other places where seL4 invocations are used directly, the return types
624   will need to be updated to reflect this change.
625 * On x86 some structs in the Bootinfo have been rearranged. This only affects seL4_VBEModeInfoBlock_t which is used if
626   VESA BIOS Extensions (VBE) information is being used.
627
628= Known issues =
629 * One of our tests is non-deterministicly becoming unresponsive on the SMP release build on the Sabre IMX.6 platform,
630   which is a non verified configuration of the kernel.  We are working on fixing this problem, and will likely do a
631   point release once it is fixed.
632
633---
634For previous releases see https://docs.sel4.systems/sel4_release/
635