Avi Kivity wrote: > >>>But does the fact KVM doesn't use TCG prevent KVM from running some > >>>x86 modes correctly? E.g. I gather 16-bit code is run by KVM using > >>>VM86 mode, which is not exactly correct. It would be nice to have KVM > >>>acceleration but also complete and correct emulation, by switching to > >>>TCG for those modes. > >>> > >>There is work in progress to make 16-bit emulation fully accurate. > > > >Ooh! I want my Windows 95 to run in KVM :-) > >I'm curious, how is this planned to work? > > > >I'm having trouble thinking of how to do it without software emulation > >at some stage. > > By emulating all instructions that can't be virtualized.
Ah, I see (after much reading)... the idea is to finish the software emulator for real-mode instructions in the kernel, include floating point and 32-bit, and then to stop using VM86 altogether when emulating real-mode. VM86 might still be used to virtualize VM86 :-) Fortunately the set of instructions in real-mode is small (by x86 standards!), and listed in Intel's system architecture manual: "Instructions Supported in Real-Address Mode", plus x87 instructions and a few quasi-undocumented ones. Other instructions (MMX, SSE, etc.) cannot run in real mode, so a complete real-mode emulator is reasonably small. I was under the impression real-mode emulation needed to cover most of the x86 instruction set, which is large, but this is not required. Great! I'm looking forward to running Windows 95 and 3.11 under it :-) -- Jamie -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html
