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
sw64: iommu: work around iova range check after resv_region
3.5G ~ 4G currently is seen as PCI 32-bit MEMIO space. In theory,
this space should be excluded from memory space addressing (using
resv_region APIs), which will leave a memory hole on the entire
memory space naturally.
However, some applications(especially qemu) under sunway do not
support incontiguous memory allocation right now. This memory
hole has to be seen as one of the valid IOVA ranges to pass VFIO
validness check for qemu. In this case, CPU is still capable of
allocating IOVA in this space, which is, frankly speaking,
dangerous and buggy.
We manage to find a compromise solution, which is allow these IOVA
being allocated and "mapped" as usual, but with a warning issued
to users at the same time. So users can quickly learn if they are
using these "illegal" IOVA and thus change their strategies accordingly.
Signed-off-by: Xu Yiwei <xuyiwei@wxiat.com>
Reviewed-by: He Sheng <hesheng@wxiat.com>
Signed-off-by: Gu Zitao <guzitao@wxiat.com>
(cherry picked from commit f4d6476)
0 commit comments