KVM vs Bochs

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

KVM vs Bochs

Post 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?
djmauretto
Member
Member
Posts: 116
Joined: Wed Oct 22, 2008 2:21 am
Location: Roma,Italy

Re: KVM vs Bochs

Post by djmauretto »

The more realistic is real hardware... :wink:
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Re: KVM vs Bochs

Post 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.
User avatar
JackScott
Member
Member
Posts: 1035
Joined: Thu Dec 21, 2006 3:03 am
Location: Hobart, Australia
Mastodon: https://aus.social/@jackscottau
Matrix: @JackScottAU:matrix.org
GitHub: https://github.com/JackScottAU
Contact:

Re: KVM vs Bochs

Post 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.
JohnnyTheDon
Member
Member
Posts: 524
Joined: Sun Nov 09, 2008 2:55 am
Location: Pennsylvania, USA

Re: KVM vs Bochs

Post 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.
User avatar
AJ
Member
Member
Posts: 2646
Joined: Sun Oct 22, 2006 7:01 am
Location: Devon, UK
Contact:

Re: KVM vs Bochs

Post 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
Post Reply