[Rust-VMM] RFC:

Paolo Bonzini pbonzini at redhat.com
Mon Feb 11 19:01:27 UTC 2019

On 11/02/19 19:32, Zach Reizner wrote:
>     2) The GuestMemory represents partial or full mapping of an
>     AddressSpace into current process, so usize should be used here for
>     memory related fields because they are used to save pointer/size in
>     current process. And MemoryMapping should be usize too.
>     What’s your thoughts?
> That seems like a good solution. As long as GuestAddress can be used
> with GuestMemory methods automatically, independent of the compiled word
> size, then this will be suitable. 

Yes, also in the proposal I placed in the rust-vmm/community issue you
have guest memory as an "impl Bytes<GuestAddress>" (which wraps 64-bit
offsets), while individual memory regions are "impl Bytes<usize>" and
could be mmap-ed regions, u8 slices or whatever.


More information about the Rust-vmm mailing list