jonomango / hv

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

mmr logging bug #33

Closed chiefmasterR closed 11 months ago

chiefmasterR commented 11 months ago

https://github.com/jonomango/hv/blob/86ca9f50238c65b75ef04fdec1f6c45d8e98fdbf/hv/exit-handlers.cpp#L573

I think you forgot to check for is_relevant_mode, I think it should be this way: if (physical_address >= entry.start && physical_address < (entry.start + entry.size) && is_relevant_mode)

jonomango commented 11 months ago

Good catch. I fixed this on my local repository but forgot to push the changes.

jonomango commented 11 months ago

https://github.com/jonomango/hv/commit/cd4d4022351b5d762045a02108973c697a79bb34