crosvm/vm_control
Ryan Neph 6489a17fb7 devices: iommu: register dmabuf map as aligned guest physical address
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>
2024-06-25 18:27:13 +00:00
..
src devices: iommu: register dmabuf map as aligned guest physical address 2024-06-25 18:27:13 +00:00
Cargo.toml Cargo.toml: avoid "*" versions for external crates 2024-05-22 01:01:42 +00:00