mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
6489a17fb7
Just use the gpa directly, instead of masking to gfn then back. Retain the same guarantees as with gfn-based tracking by validating page-alignment at registration-time. Except this is validated against the virtio-iommu devices _actual_ pagesize, rather than an assumed one placed elsewhere in the source. Also adds validation of the requested mapping range. BUG=b:323368701 TEST=tools/dev_container tools/presubmit Change-Id: Ib0f52ae18d06f8d2489f2229488dc6fc1932dba4 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5542920 Reviewed-by: Alexandre Courbot <acourbot@chromium.org> Commit-Queue: Ryan Neph <ryanneph@google.com> Reviewed-by: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |