crosvm/kvm
Keiichi Watanabe 533c5c8258 vm_memory: Add from_desciptor() in MemoryMappingBuilder
MemoryMappingBuilder had `from_file()` and `from_shared_memory`, which
are almost the same. So, this commit adds `from_descriptor()` to replace
both of the two.

BUG=b:194137301
TEST=build

Change-Id: Ia13f5e8e0f95a5c32e47dc9b3be13b7a7fa510bf
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3159881
Tested-by: kokoro <noreply+kokoro@google.com>
Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org>
Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
2021-09-22 04:37:44 +00:00
..
src vm_memory: Add from_desciptor() in MemoryMappingBuilder 2021-09-22 04:37:44 +00:00
tests vm_memory: Add from_desciptor() in MemoryMappingBuilder 2021-09-22 04:37:44 +00:00
Cargo.toml replace all usage of MsgOnSocket derives 2021-04-02 15:40:41 +00:00