crosvm/x86_64/src
Zach Reizner 127453d7ec eliminate mut from non-mut references
This manifested itself in a couple places that were turning shared
memory buffers into slices for the purposes of passing these slices to
`Read` and `Write` trait methods.

However, this required the removal of the methods that took `Read` and
`Write` instances. This was a convenient interface but impossible to
implement safely because making slices from raw pointers without
enforcing safety guarantees causes undefined behaviour in Rust. It turns
out lots of code in crosvm was using these interfaces indirectly, which
explains why this CL touches so much.

TEST=crosvm run
BUG=chromium:938767

Change-Id: I4ff40c98da6ed08a4a42f4c31f0717f81b1c5863
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1636685
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Zach Reizner <zachr@chromium.org>
2019-06-04 20:29:25 +00:00
..
bootparam.rs x86_64: regenerate bootparam bindings without unions 2019-05-23 07:35:15 -07:00
bzimage.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
cpuid.rs clippy: Iterate without calling .iter() 2019-04-18 19:51:01 -07:00
fdt.rs x86_64: regenerate bootparam bindings without unions 2019-05-23 07:35:15 -07:00
gdt.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
interrupts.rs error: Consistently use Display instead of error description() 2019-03-02 17:41:31 -08:00
lib.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
mpspec.rs crosvm: add license blurb to all files 2019-04-24 15:51:38 -07:00
mptable.rs eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00
msr_index.rs
regs.rs clippy: Resolve cast_ptr_alignment 2019-04-18 19:51:29 -07:00
smbios.rs smbios: fix clippy warnings 2019-05-22 20:57:04 -07:00