ionescu007 / SimpleVisor

SimpleVisor is a simple, portable, Intel VT-x hypervisor with two specific goals: using the least amount of assembly code (10 lines), and having the smallest amount of VMX-related code to support dynamic hyperjacking and unhyperjacking (that is, virtualizing the host state from within the host). It works on Windows and UEFI.
http://ionescu007.github.io/SimpleVisor/
1.69k stars 259 forks source link

question how works #26

Closed publicocean0 closed 6 years ago

publicocean0 commented 6 years ago

hi is there a simple document how works? Sincerelly except a definition i cant find a mini document explaining how works the mechanism for hypervisor. Ideally i imagined you define a memory area where you can work , you load the code in that area and if a instruction is trying to go outside there is a trap to a specific function in hypervisor. a special trap is used also for instructions with IO accesses. But this is just a my idea.How it is possible to associate a trap to hypervisor for wrong memory access,...? is there a way for creating a trap in user mode in the memory access?

ionescu007 commented 6 years ago

Hi!

Sorry for my late reply. If you're actually trying to build real traps/etc, then I suggest you take a look at HyperPlatform or BareFlank. This is more of a 'toy' hypervisor to show the basic/minimal setup.