‹ BackHN Continuity

Thread

Ask HN: Who's still keeping a DOS machine up because the business depends on it?

297 points · 304 comments · mlaux

  1. andix · · focus · HN ↗
    Just out of curiosity: is it possible to somehow attach an ISA Adapter via USB to a VM? ISA does depend a lot on DMA and timing, but the clock is only 8 mhz and gives a software layer on a modern cpu a lot of time to do stuff between ISA bus cycles.

    Keeping old hardware running is very fragile. Most spare parts are decades old now too, and nobody knows if they still work properly.

    1. Teknoman117 · · focus · HN ↗
      To a VM? Possibly.

      The DMA might actually be the easy part.

      The main concern is how many VM exits per second a modern CPU can handle. Even though the interface is "slow", you can probably do ~500k to 1 million IN/OUTs or MOVs per second to ISA. You'd have to trap (VM exit) every access to a IO port or memory within the ISA window.

      During the pandemic I cobbled together a KVM-accelerated emulator for an old 386EX based board I had and trapping every memory access to IO was slower than the real hardware.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.