home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / linux / 9606 < prev    next >
Encoding:
Text File  |  1992-09-01  |  2.2 KB  |  48 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!eff!snorkelwacker.mit.edu!bloom-picayune.mit.edu!daemon
  3. From: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  4. Subject: Re: VM386?  Possible?
  5. Message-ID: <1992Sep1.212303.2509@athena.mit.edu>
  6. Sender: daemon@athena.mit.edu (Mr Background)
  7. Reply-To: tytso@ATHENA.MIT.EDU (Theodore Ts'o)
  8. Organization: The Internet
  9. Date: Tue, 1 Sep 1992 21:23:03 GMT
  10. Lines: 36
  11.  
  12.    From: lm@slovax.Eng.Sun.COM (Larry McVoy)
  13.    Date: 1 Sep 1992 17:08:52 GMT
  14.    Reply-To: lm@sun.UUCP (Larry McVoy)
  15.  
  16.    Forgive my ignorance, but is it possible to run a 386 program on a
  17.    virtual 386 on a real 386?  The reason I ask is this: aren't a lot 
  18.    of dos programs running in 386 mode?  So even if you got VM86 working
  19.    and got a dos emulator running, wouldn't things like windows apps
  20.    not run at all?  Or is everything still running as an 8086?
  21.  
  22. There's no such thing as a "virtual 386 mode" on a 386.  If there was,
  23. they'd have to be infinitely stacking, because you a program running on
  24. the virtual 386 might want to run a virtual 386 mode on top of the
  25. virtual 386 mode, and so on, and so on, and so on.....
  26.  
  27. Actually, most DOS programs don't run in 386 mode.  There are two
  28. reasons for this.  One is that is takes a fair amount of effort to write
  29. a 386-mode program, since DOS runs in 16bit mode, and so you would need
  30. to use a so-called "DOS extender" which translates 32 bit subroutine
  31. calls to the 16-bit calls necessary to invoke the DOS routines.  The
  32. other reason why most programs aren't written in 386 mode is that a lot
  33. of people don't have 386 machines; they have 8086 or 80286 machines, and
  34. if your program is 386-only, you've just locked out a good segment of
  35. the market place from being able to use (and therefore buy) your
  36. program.
  37.  
  38. It's true that you won't be able to run Windows on a VM86 emulator ---
  39. but that's because it's trying to be an *operating system*, and Linux has
  40. control over all of the page tables, interrupt descriptor tables, etc.,
  41. and it cannot reliquish them over to Windows without completely messing
  42. up Linux.
  43.  
  44. But for the majority of the PC *applications*, this shouldn't be a
  45. concern; they tend to be written using only 8086 code.
  46.  
  47.                         - Ted
  48.