mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 04:26:38 +00:00
In VT-d, the IOMMU hardware can translate guest physical address that is no more than MGAW (Maximum Guest Address Width) which is reported from the VT-d Capability register. We pass this information to the guest IOMMU front driver so that it can allocate appropriate IOVA. VT-d indicates that "implementations must support MGAW at least equal to the physical addressability (host address width) of the platform". Thus we take the Physical Address Bits that is reported by CPUID.80000008H as the minimum MGAW. BUG=b:181736020 TEST=--vfio=/sys/bus/pci/devices/0000:00:14.0,iommu=on Change-Id: I26a421ea2e7dd893d413d63ab313721cfdf0b5c1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2757278 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: David Stevens <stevensd@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_skip | ||
Cargo.toml |