mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-09 20:04:20 +00:00
We recently started to map VVU device registers into the process address space, but accessed them like regular memory. This is dangerous as the compiler can reorder and optimize these accesses. Add new `write_obj_volatile` and `read_obj_volatile` ops to `MemoryMapping` that are designed to perform such I/O accesses and use them where appropriate. BUG=b:238282334 BUG=b:237647217 TEST=VVU console device can be created from Linux. Change-Id: I40f30acfd358248d4f9d0c00d5cd708eabae047d Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3762971 Tested-by: Alexandre Courbot <acourbot@chromium.org> Reviewed-by: David Stevens <stevensd@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> |
||
---|---|---|
.. | ||
base_event_token_derive | ||
src | ||
.build_test_serial | ||
Cargo.toml |