| 1 |
.. SPDX-License-Identifier: CC-BY-4.0 |
| 2 |
|
| 3 |
################################## |
| 4 |
Requirements Introduction Document |
| 5 |
################################## |
| 6 |
|
| 7 |
This folder contains a set of requirements describing Xen and its implementation |
| 8 |
in a form suitable for a safety certification process. |
| 9 |
|
| 10 |
The status is experimental and it is maintained on a best effort basis. The |
| 11 |
requirements may get slightly out of sync with the code. We are actively working |
| 12 |
on a process to keep them updated, more details to follow. |
| 13 |
|
| 14 |
The requirements writing style is inspired from the ANSI/IEEE guide to Software |
| 15 |
Requirements Standard 830-1984. |
| 16 |
|
| 17 |
The requirements are categorized as follows :- |
| 18 |
|
| 19 |
1. Market requirements - They define the high level functionalities of the |
| 20 |
hypervisor without going into concepts specific to Xen. Those should allow a |
| 21 |
system architect to understand wether Xen is providing the functionalities it |
| 22 |
needs for its system. This is the top level of the requirements. |
| 23 |
|
| 24 |
2. Product requirements - They define the Xen specific concepts and interfaces |
| 25 |
provided by Xen without going into implementation details. One or several of |
| 26 |
those requirements are linked to each market requirement. An Architect can use |
| 27 |
them understand how Xen fulfils a market need and design how Xen should be used |
| 28 |
in his system. |
| 29 |
|
| 30 |
3. Design requirements - They describe what the software implementation is doing |
| 31 |
from a technical point of view. One or several design requirement together |
| 32 |
define how product requirements are fulfilled technically and are linked to |
| 33 |
them. An implementer can use them to know how to write or understand the Xen |
| 34 |
code. |
| 35 |
|
| 36 |
The requirements are linked using OpenFastTrace |
| 37 |
(https://github.com/itsallcode/openfasttrace/blob/main/doc/user_guide.md). |
| 38 |
OpenFastTrace parses through the requirements and generates a traceability |
| 39 |
report. |
| 40 |
|
| 41 |
Assumption of Use |
| 42 |
================= |
| 43 |
|
| 44 |
Xen is making several assumptions on the status of the platform or on some |
| 45 |
functions being present and operational. For example, Xen might assume that |
| 46 |
some registers are set. |
| 47 |
Anybody who wants to use Xen must validate that the platform it is used on |
| 48 |
(meaning the hardware and any software running before Xen like the firmware) |
| 49 |
fulfils all the AoU described by Xen. |
| 50 |
|
| 51 |
The following is the skeleton for a requirement. |
| 52 |
|
| 53 |
Title of the requirement |
| 54 |
======================== |
| 55 |
|
| 56 |
`unique_tag` |
| 57 |
|
| 58 |
.. |
| 59 |
|
| 60 |
Each requirement needs to have a unique tag associated. The format is |
| 61 |
req_type~name~revision. |
| 62 |
|
| 63 |
Thus, it consists of three components :- |
| 64 |
requirement type - This denotes the category of requirement. Thus, it shall |
| 65 |
be 'XenMkt', 'XenProd' or 'XenSwdgn' to denote market, product or design |
| 66 |
requirement. |
| 67 |
name - This denotes name of the requirement. In case of architecture specific |
| 68 |
requirements, this starts with the architecture type (eg x86_64, arm64) |
| 69 |
followed by component name (eg generic_timer) and action (eg read_xxx). |
| 70 |
revision number - This gets incremented each time the requirement is modified. |
| 71 |
|
| 72 |
|
| 73 |
Description: |
| 74 |
This shall describe the requirement in a definitive tone. In other words, |
| 75 |
the requirement begins with 'Xen shall ...'. Further, the description is |
| 76 |
expected to be unambiguous and consistent. |
| 77 |
|
| 78 |
Rationale: |
| 79 |
This describes a rationale explaining the reason of the presence of the |
| 80 |
requirement when this can help the reader. This field can be left blank. |
| 81 |
|
| 82 |
Comments: |
| 83 |
This describes the use cases for the requirement when this can help the |
| 84 |
reader. This field can be left blank as well. |
| 85 |
|
| 86 |
Covers: |
| 87 |
This denotes the unique_tag of the parent. This field is non existent for the |
| 88 |
market requirement as it is the top level. |
| 89 |
|
| 90 |
Needs: |
| 91 |
This denotes the requirement type of its children. This field is non existent |
| 92 |
for the design requirements as there are no subsequent requirements linked to |
| 93 |
them. |
| 94 |
|
| 95 |
|
| 96 |
The requirements are expected to the technically correct and follow the above |
| 97 |
guidelines. |