obhq / obliteration

Experimental PS4 emulator written in Rust for Windows, macOS and Linux
https://obliteration.net
MIT License
601 stars 17 forks source link

Maps VM memory #759

Closed ultimaweapon closed 4 months ago

ultimaweapon commented 4 months ago

The reason we still use C++ with KVM is because https://crates.io/crates/kvm-ioctls is too high-level. We need something like raw KVM binding.

SuchAFuriousDeath commented 4 months ago

Found this: https://gitlab.com/preon/libkvm

ultimaweapon commented 4 months ago

Found this: https://gitlab.com/preon/libkvm

Last commit was 5 years ago 😱

SuchAFuriousDeath commented 4 months ago

Maybe we could make our own binding crate

SuchAFuriousDeath commented 4 months ago

Found this: https://gitlab.com/preon/libkvm

Last commit was 5 years ago 😱

That's not necesarilly bad though, is it? Maybe there's just nothing to do because the api doesn't change.

ultimaweapon commented 4 months ago

Maybe we could make our own binding crate

I don't think it wort the effort than using cc to build the C++ wrapper.

Found this: https://gitlab.com/preon/libkvm

Last commit was 5 years ago 😱

That's not necesarilly bad though, is it? Maybe there's just nothing to do because the api doesn't change.

Just checking its code and it is also high-level the same as the first one.