Open wbenny opened 6 years ago
Thanks for the link. FWIW, some time ago I've already added this: https://github.com/wbenny/hvpp/blob/master/src/hvpp/hvpp/ia32/memory.cpp#L85, which behaves similarly to MmMapIoSpace
(with the benefit of mapping even non-IO space). It's just currently not used for anything.
https://github.com/intel/haxm/blob/d29c7cdabb2797cd41f590e52c435eabfcd432d2/core/vtlb.c#L1115 is your friend. note that GPA to HVA mapping is a hard job for vmm host since you are not able to use MmMapIoSpace or MmGetVirtualForPhysical or some other kernel apis to do those mapping stuffs. espicially on Windows 10 RS4.