mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
d93be8c65f
Certain platforms use the noncoherent-dma feature to appropriately consider the guest PAT's memory type (caching mode) when configuring the effective memory type in SLAT, instead of simply ignoring it in favor of the host PAT. Dynamic blob mapping has already integrated support for noncoherent-dma upon setting up each mapped blob's memory region (e.g. KVM memslot), but fixed_blob_mapping merged while naively ignoring the feature. Now, we respect the feature when setting up the shared/prepared memory region (appropriately passing the new MemCacheType enum through to the hypervisor). BUG=b:246334944 TEST=tools/presubmit TEST=(in venus-enabled VM w/ noncoherent-dma) `deqp-vk -n dEQP-VK.memory*` passing TEST=(in venus-enabled VM w/ noncoherent-dma) Hollow Knight, Portal 2, Valheim, CS:Source all look fine. Change-Id: Ia31763c80765a42a1932bfb347ffa57a2faf6fab Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5285309 Commit-Queue: Ryan Neph <ryanneph@google.com> Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> |
||
---|---|---|
.. | ||
src | ||
tests/irqchip | ||
Cargo.toml |