mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
Host dma-buf refers to the buffers allocated in host memory and shared with guest passthrough devices or vCPU through dma-buf interface. To let guest passthrough devices access the host dma-buf, host needs to pin those buffers in memory and set up the mapping in vt-d table before those buffers are exposed to guest and do the unpin thing right after those buffers get returned from guest. BUG=b:235508487 TEST=test with a crostini VM equiped with a passthrough GPU, e.g. --vfio /sys/bus/pci/devices/0000:04:00.0,guest-address="00:1f.0",iommu=viommu Change-Id: Ie7b3db3a7f7aa8afff03425be16c952db4a5f67b Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3764931 Commit-Queue: David Stevens <stevensd@chromium.org> Reviewed-by: David Stevens <stevensd@chromium.org> Tested-by: David Stevens <stevensd@chromium.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |