mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
c48e78344e
Protected VMs require all virtio data to be bounced through a memory window shared between the host and the guest. Although this can be achieved by forcing the guest to use swiotlb bouncing for all DMA transfers, the recent introduction of "Restricted DMA" in Linux allows these buffers to be sized and allocated on a per-device basis. Remove the 'swiotlb=force' option when '--protected-vm' is set in favour of describing a reserved memory region to be used as the swiotlb buffer for all virtio-pci devices, adjustable via the new '--swiotlb' option. BUG=b:190593703 TEST=cargo test on x86 and arm64 machines Cc: David Brazdil <dbrazdil@google.com> Cc: Claire Chang <tientzu@chromium.org> Cc: Quentin Perret <qperret@google.com> Cc: Andrew Walbran <qwandor@google.com> Cc: Marc Zyngier <mzyngier@google.com> Change-Id: I2d48a7c77740e7f3ad996ad33592f0acd53b7144 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3064198 Tested-by: kokoro <noreply+kokoro@google.com> Commit-Queue: Will Deacon <willdeacon@google.com> Reviewed-by: Andrew Walbran <qwandor@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
.build_test_skip | ||
Cargo.toml |