Hvext Save

The Windbg extension that implements commands helpful to study Hyper-V on Intel processors.

Project README

hvext

The Windbg extension that implements commands helpful to study Hyper-V on Intel processors.

Usage

  1. Attach a debugger to Hyper-V on a target. See Setting up KDNET over USB EEM for Bootloader and Hyper-V debugging for details.

  2. Let the target run if the debugger breaks-in at initial connection. This extension does not function at this stage since processors are not in VMX root operation yet.

  3. Break-in the target Hyper-V.

  4. Load the script, for example:

    kd> .scriptrun C:\Users\user\Desktop\hvext\hvext.js
    JavaScript script successfully loaded from 'C:\Users\user\Desktop\hvext\hvext.js'
    hvext loaded. Execute !hvext_help [command] for help.
    
  5. Execute commands.

    kd> !hvext_help
    hvext_help [command] - Displays this message.
    dump_dmar [pa] - Displays status and configurations of a DMA remapping unit.
    dump_ept [verbosity] - Displays contents of the EPT translation for the current EPTP.
    dump_msr [verbosity] - Displays contents of the MSR bitmaps.
    dump_vmcs - Displays contents of all VMCS encodings for ths current VMCS.
    ept_pte [gpa] - Displays contents of EPT entries used to translated the given GPA.
    indexes [address] - Displays index values to walk paging structures for the given address.
    pte [la] - Displays contents of paging structure entries used to translated the given LA.
    
    Note: When executing some of those commands, the processor must be in VMX-root operation with an active VMCS.
    

References and acknowledgement

Open Source Agenda is not affiliated with "Hvext" Project. README Source: tandasat/hvext
Stars
109
Open Issues
0
Last Commit
3 months ago
Repository
License
MIT

Open Source Agenda Badge

Open Source Agenda Rating