Repository navigation
What's Changed
Logging Infrastructure
- COM based logging [1] [2] [3]
VM Exit/Entry and FPU/SIMD State Handling
- Overhauled the
AsmVmexitHandlerto save and restore FPU/SIMD state using XSAVE/XRSTOR if supported, or FXSAVE/FXRSTOR as fallback. The handler now reserves a fixed aligned frame for this state, tracks which method was used, and restores state on resume or VMXOFF. This ensures guest FPU/SIMD context is preserved correctly across VM exits. (NovaHypervisor/AsmVmexitHandler.asm) [1] [2] [3] [4]
Hyper-V and Guest Register Handling
- Improved
AsmHypervVmcallto correctly forward XMM0-XMM5 registers between guest and Hyper-V, ensuring fast hypercalls using XMM registers function as expected. Only documented volatile/output registers are copied back to the guest frame, preserving guest state. (NovaHypervisor/AsmVmxContextState.asm) [1] [2] - Adjusted stack alignment and shadow space usage in context switch helpers to conform to calling conventions and avoid corrupting guest stack pointers. (
NovaHypervisor/AsmVmxContextState.asm)
Device Control and EPT Handling
- Enhanced validation of hooked pages in device control IOCTLs: checks for zero permissions, write-without-read, and that the address is a valid nonpaged system address. (
NovaHypervisor/DeviceControl.cpp) - Extended EPT page hook exit handler to accept and use guest linear address and RIP, laying groundwork for more precise EPT violation handling and debugging. (
NovaHypervisor/Ept.cpp)
These changes collectively increase the reliability, observability, and correctness of the hypervisor, especially in complex VM exit/entry scenarios and during debugging or integration with Hyper-V.
Full Changelog: v1.0.1...v1.0.2