You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-bootsync/cca-bootsync.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
# User change
3
-
title: "Overview of Arm CCA BootSync and Boot Sync Blocks protocol"
3
+
title: "Overview of Arm CCA BootSync and the Boot Injection Protocol"
4
4
5
5
weight: 2# 1 is first, 2 is second, etc.
6
6
@@ -12,7 +12,7 @@ layout: "learningpathall"
12
12
13
13
Arm CCA BootSync is a boot-time synchronization mechanism for Arm CCA Realms. It lets Realm guest firmware obtain configuration and secret data before the guest operating system is running. This matters because early firmware does not have a network stack, but workflows such as UEFI Secure Boot and encrypted disk boot still need trusted inputs during that early boot window.
14
14
15
-
The reference implementation uses the *Boot Sync Blocks* (BSB) protocol described by the Realm Host Interface (RHI) specification. In this Learning Path, you use BootSync to provide two kinds of data to a Realm:
15
+
The reference implementation uses the *Boot Injection Protocol*, named the BIB protocol in the Boot Injection appendix of the Realm Host Interface (RHI) specification. In this Learning Path, you use BootSync to provide two kinds of data to a Realm:
16
16
17
17
- Variable data, such as UEFI variables used to configure Secure Boot.
18
18
- Secret data, such as a disk unlock passphrase or other boot-time secret.
@@ -30,21 +30,19 @@ The BootSync flow spans both the Normal World host and the Realm World guest:
30
30
31
31
The practical result is that the Realm firmware can get boot-time data without needing direct networking. The host can carry the request, but the release decision belongs to the User Context after the Realm has provided attestation evidence.
32
32
33
-
## BootSync protocol stages
33
+
## Boot Injection Protocol stages
34
34
35
-
The BSB protocol has three logical stages:
35
+
The Boot Injection Protocol has three logical stages:
36
36
37
37
1. Key exchange establishes a secure session between the Realm guest firmware and the User Context service. The reference implementation uses ECDH over the P-384 curve, derives keys with HKDF-SHA512, and encrypts protocol data with AES-GCM.
38
38
2. Attestation lets the Realm guest firmware request an attestation report from the RMM. The binding key from the secure session is used as challenge data, so the User Context can bind the attestation evidence to this BootSync exchange.
39
-
3. Boot Information Blocks release the requested boot data after attestation succeeds. In this Learning Path, those blocks are represented by files whose names begin with the Realm Personalization Value (RPV), such as `ARMCCA01_VAR.dat` and `ARMCCA01_SEC.dat`.
40
-
41
-
The RPV is important because one User Context service can support multiple Realms. A Realm launched with `--realm-pv ARMCCA01` requests files that start with `ARMCCA01`. If the matching files are missing, BootSync can establish a session and complete attestation, but it cannot provide the requested boot information.
39
+
3. Boot Information Blocks carry the requested boot data after attestation succeeds.
42
40
43
41
## What you will validate
44
42
45
43
The exercises intentionally show both failure and success cases:
46
44
47
-
- First, you launch a Realm without the variable data file. This demonstrates that the firmware can ask for BootSync data and that the User Context reports a missing `ARMCCA01_VAR.dat` file.
45
+
- First, you launch a Realm without injection of any boot data. This demonstrates that the firmware can run successful attestation and ask for BootSync data.
48
46
- Next, you add the variable data file. BootSync completes, UEFI Secure Boot is enabled, and the unsigned kernel is rejected.
49
47
- Then, you sign the Realm kernel. The Realm boots with UEFI Secure Boot enabled, and the Secure Boot UEFI variable reports `1`.
50
48
- Finally, you encrypt the Realm root file system and use BootSync secret data to provide the unlock passphrase during boot.
Copy file name to clipboardExpand all lines: content/learning-paths/servers-and-cloud-computing/cca-bootsync/flow.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ It has been created specifically for POC purposes, so is intentionally small and
69
69
70
70
When the script starts for the first time, it generates Secure Boot signing certificates and creates a Provisioning Data file.
71
71
The Provisioning Data is a binary file generated by [GenPd.py](https://gitlab.arm.com/linux-arm/edk2-cca/-/blob/cca/4441_measured_boot_v1/ArmVirtPkg/ArmCcaBootSync/Scripts/GenPd.py) script.
72
-
The file contains UEFI variable definitions required for enabling Secure Boot.
72
+
The file contains EFI variable definitions required for enabling UEFI Secure Boot.
73
73
74
74
You will be asked for a passphrase for the Secure Boot signing certificates. Remember it because you will use it again when signing the Realm kernel.
75
75
@@ -143,7 +143,7 @@ realm login: root
143
143
(realm) #
144
144
```
145
145
146
-
Use the `efivar` utility to check the Secure Boot UEFI variable. A value of `0` confirms that Secure Boot is not enabled:
146
+
Use the `efivar` utility to check the Secure Boot EFI variable. A value of `0` confirms that Secure Boot is not enabled:
147
147
148
148
```bash { output_lines="3" }
149
149
mount -t efivarfs efivarfs /sys/firmware/efi/efivars
@@ -175,6 +175,8 @@ In the next step, you will add the missing Boot Information Block data and repea
175
175
176
176
On the terminal with the User Context service stop the service by pressing `Ctrl-C`.
177
177
178
+
The RPV and file names used here are details of this Learning Path's reference implementation. One User Context service can support multiple Realms by using the RPV as a file-name prefix. A Realm launched with `--realm-pv ARMCCA01` requests files that start with `ARMCCA01`. If the matching files are missing, BootSync can establish a session and complete attestation, but the User Context cannot provide the requested boot information.
179
+
178
180
Copy the generated Provisioning Data file to a Realm variable data file with the name `<RPV>_VAR.dat`. Because you launched the Realm with `--realm-pv ARMCCA01`, the User Context service looks for `ARMCCA01_VAR.dat`:
179
181
180
182
```bash
@@ -187,7 +189,7 @@ Create a Secret Data file with data that will be shared with a Realm using the s
0 commit comments