asamy / ksm

A fast, hackable and simple x64 VT-x hypervisor for Windows and Linux. Builtin userspace sandbox and introspection engine.
https://asamy.github.io/ksm/
GNU General Public License v2.0
837 stars 182 forks source link

Linux support #10

Closed asamy closed 7 years ago

asamy commented 7 years ago

Nice to have, there is not really that much that needs to be done besides mainly converting calling conventions and some minor stuff. The assembly stuff in x64.S can be re-used, just need some macros to for the calling conventions (e.g. rsi in place of rcx, rdi in place of rdx, etc.). Obviously some intrinsics won't be available there, but those can be easily defined with GCC inline assembly, most of the painful ones are already there, just need stuff like __writecr3 etc, we should probably just ditch Linux defined ones and re-use the names not to confuse each other.

asamy commented 7 years ago

See linux branch for progress.