<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif">On Fri, Feb 8, 2019 at 2:18 AM Liu Jiang <<a href="mailto:liuj97@gmail.com">liuj97@gmail.com</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;">Hi all,<div><span class="gmail-m_-6324568620085656860Apple-tab-span" style="white-space:pre-wrap">        </span>As we have discussed during the meeting, I have created a memory-model repository under rust-vmm project and  posted the initial version at <a href="https://github.com/rust-vmm/memory-model" target="_blank">https://github.com/rust-vmm/memory-model</a> .</div><div>The initial version tries to merge current code from the upstream crosvm and firecracker projects. And the most sensitive user visible change is changing from u64 to usize for memory related data fields.</div></div></div></div></blockquote><div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">On 64-bit arm devices, we usually run a 32-bit userspace with a 64-bit kernel. In this case, the machine word size (usize) that crosvm is compiled with (32-bit) isn't the same as the one the guest kernel, host kernel, hardware is using (64-bit). We used u64 to ensure that the size was always at least as big as needed.</div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><div style="overflow-wrap: break-word;"><div>So please help to comment on whether this is the right way to go, and next step plan is:</div><div>1) import <a href="http://endian.rs/" target="_blank">endian.rs</a> from crosvm</div><div>2) add address space abstraction for virtual machine</div><div>Thanks,</div><div>Gerry</div></div></div></div>_______________________________________________<br>
Rust-vmm mailing list<br>
<a href="mailto:Rust-vmm@lists.opendev.org" target="_blank">Rust-vmm@lists.opendev.org</a><br>
<a href="http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm" rel="noreferrer" target="_blank">http://lists.opendev.org/cgi-bin/mailman/listinfo/rust-vmm</a><br>
</blockquote></div></div>