| 1 |
Request Device Assignment without IOMMU support |
| 2 |
=============================================== |
| 3 |
|
| 4 |
*WARNING: |
| 5 |
Users should be aware that it is not always secure to assign a device without |
| 6 |
IOMMU protection. |
| 7 |
When the device is not protected by the IOMMU, the administrator should make |
| 8 |
sure that: |
| 9 |
1. The device is assigned to a trusted guest. |
| 10 |
2. Users have additional security mechanism on the platform. |
| 11 |
|
| 12 |
This document assumes that the IOMMU is absent from the system or it is |
| 13 |
disabled (status = "disabled" in device tree). |
| 14 |
|
| 15 |
Add xen,force-assign-without-iommu; to the device tree snippet: |
| 16 |
|
| 17 |
ethernet: ethernet@ff0e0000 { |
| 18 |
compatible = "cdns,zynqmp-gem"; |
| 19 |
xen,path = "/amba/ethernet@ff0e0000"; |
| 20 |
xen,reg = <0x0 0xff0e0000 0x1000 0x0 0xff0e0000>; |
| 21 |
xen,force-assign-without-iommu; |
| 22 |
}; |
| 23 |
|
| 24 |
Request 1:1 memory mapping for the domain on static allocation |
| 25 |
============================================================== |
| 26 |
|
| 27 |
Add a direct-map property under the appropriate /chosen/domU node which |
| 28 |
is also statically allocated with physical memory ranges through |
| 29 |
xen,static-mem property as its guest RAM. |
| 30 |
|
| 31 |
Below is an example on how to specify the 1:1 memory mapping for the domain |
| 32 |
on static allocation in the device-tree: |
| 33 |
|
| 34 |
/ { |
| 35 |
chosen { |
| 36 |
#address-cells = <0x1>; |
| 37 |
#size-cells = <0x1>; |
| 38 |
... |
| 39 |
domU1 { |
| 40 |
compatible = "xen,domain"; |
| 41 |
cpus = <2>; |
| 42 |
memory = <0x0 0x80000>; |
| 43 |
xen,static-mem = <0x30000000 0x20000000>; |
| 44 |
direct-map; |
| 45 |
... |
| 46 |
}; |
| 47 |
}; |
| 48 |
}; |
| 49 |
|
| 50 |
Besides reserving a 512MB region starting at the host physical address |
| 51 |
0x30000000 to DomU1, it also requests 1:1 memory mapping. |