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
config: Add Hardware description object to the VM configuration
This adds section to describe HW that should be passed through to the
VM. This enables Hardware-level isolation provided by XEN for
e.g. functional safety use cases.
Adds hwConfig object to the VM section which is apt to describe the
initial configuration for the VM, sush as number of vcpus and memory,
provided to the VM.
Hardware description includes path to the device-tree, that should be
passed to the VM and the hardware configuration parameters which
provides all needed data for VM to use the devices, such as:
- dtdevs: host device tree nodes to passthrough to the VM;
- iomems: allow auto-translated domains to access specific hardware
I/O memory pages;
- irqs: allows VM to access specific physical IRQs.
Signed-off-by: Oleksii Moisieiev <oleksii_moisieiev@epam.com>
Copy file name to clipboardexpand all lines: config-vm.md
+46
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,54 @@ This image contains the root filesystem that the virtual machine **`kernel`** wi
61
61
}
62
62
```
63
63
64
+
## <aname="HwConfigObject" /> HWConfig Object
65
+
66
+
**`hwConfig`** (object OPTIONAL) Specifies the hardware configuration that should be passed to the VM.
67
+
***`deviceTree`** (string OPTIONAL) Path to the container device-tree file that should be passed to the VM.
68
+
***`vcpus`** (int OPTIONAL) Number of virtual cpus for the VM.
69
+
***`memory`** (int OPTIONAL) Maximum memory in bytes allocated to the VM.
70
+
***`dtdevs`** (array OPTIONAL) Host device tree nodes to passthrough to the VM, see [Xen Config][xl-config-format] for the details.
71
+
***`iomems`** (array OPTIONAL) Allow auto-translated domains to access specific hardware I/O memory pages, see [Xen Config][xl-config-format].
72
+
***`firstGFN`** (int OPTIONAL) Guest Frame Number to map the iomem range.
73
+
If GFN is not specified, the mapping will be done to the same Frame Number as was provided in firstMFN, see [Xen Config][xl-config-format] for the details.
74
+
***`firstMFN`** (int REQUIRED) Physical page number of iomem regions, see [Xen Config][xl-config-format] for the details.
75
+
***`nrMFNs`** (int REQUIRED) Number of pages to be mapped, see [Xen Config][xl-config-format] for the details.
76
+
***`irqs`** (array OPTIONAL) Allows VM to access specific physical IRQs, see [Xen Config][xl-config-format] for the details.
77
+
78
+
This hwConfig object contains the description of the hardware that can be safely passed through to the VM. Where **`deviceTree`** is the path to the device-tree blob, which conains description of the isolated hardware and paravirtualized hardware that should be used by VM. **`dtdevs`**, **`iomems`** and **`irqs`** parameters describing the minimun set of the parameters, needed for VM to access the hardware.
0 commit comments