xen: arm: doc: Add firmware requirements
PATCH v2 1/1 xen: arm: doc: Add firmware requirements
Add a section about what the firmware should do in EL3 before starting Xen.
E.g. on ARM Linux the HVC instruction is used to trap into Xen. As this can be set only at EL3, i.e. outside from Xen, document this boot requirement.
--- docs/misc/arm/booting.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
docs/misc/arm/booting.txt +15 -0
@@ -23,6 +23,21 @@ The exceptions to this on 32-bit ARM are as follows: There are no exception on 64-bit ARM. + +Firmware/bootloader requirements +-------------------------------- + +Xen relies on some settings the firmware has to do in EL3 before starting +Xen. + +* EL2: Xen must be entered in NS EL2 mode + +* HCE: It has to be ensured that the Secure Configuration Register + has the HVC instructions enabled at EL1 and above + ARM32: SCR.HCE == 1 + ARM64: SCR_EL3.HCE == 1 + + [1] linux/Documentation/arm/Booting Latest version: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm/Booting
Signature · 7 lines
2.8.0 _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel
Hi Dirk,
Quoted 3 lines · Dirk Behme
Add a section about what the firmware should do in EL3 before starting Xen.
E.g. on ARM Linux the HVC instruction is used to trap into Xen. As this
I would rather say "E.g guest will use HVC instruction to issue hypercall".
Quoted 1 line
can be set only at EL3, i.e. outside from Xen, document this boot requirement.
s/outside from/outside/
Quoted 11 lines
Signed-off-by Dirk Behme <[email protected]>--- docs/misc/arm/booting.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+)docs/misc/arm/booting.txt +0
-0
docs/misc/arm/booting.txt The exceptions to this on 32-bit ARM are as follows: · line 30
Quoted 8 lines
docs/misc/arm/booting.txt +5
-0@@ -23,6 +23,21 @@ The exceptions to this on 32-bit ARM are as follows: There are no exception on 64-bit ARM. + +Firmware/bootloader requirements +-------------------------------- + +Xen relies on some settings the firmware has to do in EL3 before starting
I would replace "do" by "configure".
docs/misc/arm/booting.txt The exceptions to this on 32-bit ARM are as follows: · line 33
Quoted 3 lines
docs/misc/arm/booting.txt +3
-0+Xen. + +* EL2: Xen must be entered in NS EL2 mode
I would drop "EL2: " as it's not clear what it stands for. Same for "HCE:" below.
docs/misc/arm/booting.txt The exceptions to this on 32-bit ARM are as follows: · line 38
Quoted 5 lines
docs/misc/arm/booting.txt +5
-0+ +* HCE: It has to be ensured that the Secure Configuration Register + has the HVC instructions enabled at EL1 and above + ARM32: SCR.HCE == 1 + ARM64: SCR_EL3.HCE == 1
I would simplify the description: "The bit SCR_EL3.HCR (resp. SCR.HCE for 32-bit ARM) must be set to 1."
docs/misc/arm/booting.txt The exceptions to this on 32-bit ARM are as follows: · line 43
Quoted 6 lines
docs/misc/arm/booting.txt +2
-0+ + [1] linux/Documentation/arm/Booting Latest version: http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/arm/Booting
Regards,
Signature · 6 lines
Julien Grall _______________________________________________ Xen-devel mailing list [email protected] http://lists.xen.org/xen-devel