Skip to content Skip to footer

Quitting an Intel x86 Hypervisor by todsacerdoti

4 Comments

  • Post Author
    userbinator
    Posted March 23, 2025 at 12:08 am

    This reminds me of DOS-based Windows which would need to get out of the V86 mode that EMM386 used before going into protected mode itself; a task which was done using the undocumented (at the time) GEMMIS interface.

  • Post Author
    snvzz
    Posted March 23, 2025 at 10:54 am

    Awful.

    Fortunately, we won't have to suffer x86 much longer.

  • Post Author
    gblargg
    Posted March 23, 2025 at 10:59 am

    Fun stuff. Reminds me of writing code to restore a state snapshot for a sound module with its own processor. It had four byte-wide shared I/O registers in a row. After restoring almost all memory, I put a two-byte infinite-loop branch instruction in the last two bytes and had the sound CPU jump to it, loaded a 1- or 2- byte instruction in the first two bytes, then modified the branch offset to execute this instruction as part of the loop, let it run a few times, then modified the offset to just be a single-instruction loop. I did this multiple times to execute each instruction needed to finish loading memory, restore all registers, and finally jump to the execution address with everything restored.

Leave a comment

In the Shadows of Innovation”

© 2025 HackTech.info. All Rights Reserved.

Sign Up to Our Newsletter

Be the first to know the latest updates

Whoops, you're not connected to Mailchimp. You need to enter a valid Mailchimp API key.