Page 1 of 1
KVM vs Bochs
Posted: Wed Jan 07, 2009 12:38 pm
by JohnnyTheDon
Right now I use Bochs to test my OS. However, I recently setup an old computer with Ubuntu Server, which has a Virtual Machine Server that uses the kvm Linux module to run virtual machines on hardware that supports VMX.
Would this method be a more realistic test for my OS than Bochs?
Re: KVM vs Bochs
Posted: Wed Jan 07, 2009 2:28 pm
by djmauretto
The more realistic is real hardware...
Re: KVM vs Bochs
Posted: Thu Jan 08, 2009 2:00 am
by xyzzy
AFAIK KVM will present more of the host CPUs features to the guest. However, despite that, it's probably good to test your OS on as many things as possible.
Re: KVM vs Bochs
Posted: Thu Jan 08, 2009 2:11 am
by JackScott
The most important thing in testing, and that will help you find the most bugs, is variety. Both Bochs and virtual servers don't give you much (if any) variety. Unfortunately, the only way to get variety is to buy real machines. You don't have to spend much though. In this day and age, people usually have old computers lying around, "because they are too good to chuck away". If you offer to take the hard drive out so they can keep the data, most people are more than happy to give them away, or sell them for a pittance.
Re: KVM vs Bochs
Posted: Thu Jan 08, 2009 4:42 pm
by JohnnyTheDon
Yeah, I will be testing on real machines, but its obviously quite a hassle to do this every time I change a line of code.
As far as cheap/free computer that people give away, I doubt I will be able to find that many. My OS is long mode only and x86_64 processors aren't exactly common in older computers.
Re: KVM vs Bochs
Posted: Fri Jan 09, 2009 4:44 am
by AJ
I would test on emulators to start with. When you are happy that a unit works on an emulator, test that entire unit on real hardware.
Cheers,
Adam