jonomango / hv

Lightweight Intel VT-x Hypervisor.
MIT License
363 stars 77 forks source link

get_physical_address() failing win10 2004/10.0.19041.1 #28

Open VMHolePuncher opened 12 months ago

VMHolePuncher commented 12 months ago

If the hv is loaded after the system has some runtime on it, the function get_physical_address in the example um project fails. I am unable to check if it is actually get_hv_base that is failing at the moment, but I will update the issue with the results.

jonomango commented 12 months ago

Sorry, the example in the um project won't work. It is leftover code from when I was debugging EAC and that virtual address is most likely invalid.

jonomango commented 12 months ago

The hv_size variable is probably wrong then. It should be set to the SizeOfImage for the compiled hv.sys. You can find this with PE-Bear or a similar tool. If the issue still occurs even with the correct size, then I'll re-open the issue.

VMHolePuncher commented 12 months ago

I've check with PE-Bear and the SizeOfImage is the same as in the example.