Pointers for Developing x86 Virtualization?
josh asks: "For my next project, I've decided I want to do something related to x86 virtualization (the way VMware does it or Plex86 not Xen/Bochs/etc.) but I really don't know where to start. Googling hasn't been helpful (just look at the results if you don't believe me). Are there any resources for learning about this kind of x86 virtualization? I know virtual 8086 mode wouldn't work, but without that what advantage does something like VMware have over something like Bochs? Are there any F/OSS projects aimed at something along the lines of my thinking? Please enlighten me with any references and resources you might have. Thanks!"
Go to the plex86 page you linked to and download source. That's an excellent place to start. Apart from that, boning up on the difference between user and kernel modes and getting your hands on the free Intel developers' docs on the Intel website are about as good as it gets for this kind of learning.
I find qemu to be quite excellent x86 virtualization software. It's closer to VMware than Bochs, using dynamic translation.
Half of what you want is cpu documentation, Intel makes nice free guides to their 32 bit x86 cpus. Sometimes they even will send out the manuals free in book format, right now it looks like you can download them or order a free cd. Check back often because the free books(shipping free too) come and go. http://developer.intel.com/design/pentium4/manuals /index2.htm
p ub/WWW/files.html
The other main half is BIOS info, check our Ralf Brown's int list: http://www-2.cs.cmu.edu/afs/cs.cmu.edu/user/ralf/
For the rest you just need lots docs about various hardware like floppy controllers and such, check out my site for OS developers since I probably have more links listed then anyone else. Besides this stuff you might want to re-include java in your google searches because most of the research into virtual machines that I've seen uses java but alot would still apply.
My Hello World is 512 bytes. But it's also a valid Fat12 boot sector, Fat12 file reader, and Pmode routine.
Something you may want to look at is MOL (maconlinux.org). It's for PPC, but it does demonstrate how to do virtual machines like you are discussing.
Don't forget that one good thing is also your ability to write a good driver for the client OS. That can yield huge speed increases on its own.
this page has all the open source wiki pages, and this is the front page for the site.
here are a few links from my collection on the topic:
m l u l/),
+ vmware
+ bochs
+ vax with simh-vax, see
http://www.netbsd.org/Ports/vax/emulator-howto.ht
+ xen
(http://www.cl.cam.ac.uk/Research/SRG/netos/xen/)
+ LilyVM
(http://lilyvm.sourceforge.net/index.ja.html)
+ mips64emul
(http://www.mdstud.chalmers.se/~md1gavan/mips64em
+ dosbox (http://dosbox.sf.net)
I'm mostly interested with running non-Linux (e.g. NetBSD, Solaris) in a virtual environment for using it in my "Virtual Unix Lab" training environment, see http://www.feyrer.de/vulab/).
- Hubert
If you want a real Open Source emulator that's complete enough to run Windows XP (and do so with usable speed), QEmu is your only option. Currently it simulates a Pentium, Vesa fgramebuffer video card, and ISA NE2000 NIC.
:^).
Check out this dude's blog for screenshots of QEmu running Win2K.
Combine it with a copy of x86 glibc and a recent Crossover, you can use it to run Office XP for Windows on Linux on a Mac. Scary
Go get it from the Qemu Site.
The acm portal does have a wealth of information but u need to pay for the subscription to access most papers(unless as in my case u r a student and ur univ library has a subscription) . However, one good idea is to find the relevant papers and then google for them( many authors often maintain a copy of their papers on their webpages .. albiet somewhat illegally)
It is legal for the author to make a copy of their paper available free of charge, although the ACM (and other professional organizations) discourage it. The author is the copyright holder.
I've had this sig for three days.