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: config-vm.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
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