rust-vmm / vm-memory

Virtual machine's guest memory crate
Apache License 2.0
309 stars 103 forks source link

Add methods for atomic access to Bytes #115

Closed alexandruag closed 4 years ago

alexandruag commented 4 years ago

This PR adds the load and store methods to the Bytes interface, which can be used to perform atomic accesses based on a specified Ordering argument. It's a simplified variant of #104, which does not include the abstractions for aligned accesses.

bonzini commented 4 years ago

Looks good to me!

jiangliu commented 4 years ago

LGTM