⚡Megatron LLM Hub
←Back to search
Twitter

作者记录把自定义 hypervisor 系列移植到 Rust 的进展与坑

虚拟化rust
Following along with the (excellent!) custom hypervisor series for 'fun' and learning (porting the original series to Rust ofc ^^, and trying to make it somewhat idiomatic) has been enjoyable so far, fairly slow going; but making progress! A few Rust challenges along the way, most notably language wise porting union bitfields. The first one I came across in anger I masked directly out of the bitfield into a struct. No problem. Then I came to part 4 of the series for allocating the EPT, and felt my will to live get drained lol (lots of bitfield unions :E). Came across a bitfield crate which makes make life a LOT easier..! I'm going to have to read through part 4 of the series a few more times. Gonna slow cook a Sunday stew and let everything up until now 'stew' in my head...