Page 1 of 1
What is the applied standard for simulating hardware here?
Posted: Sat Oct 24, 2009 9:34 am
by ehenkes
I had a discussion about the test standard for OS. In my opinion bochs is such a standard software, but other people told me that qemu is the ideal standard for simulation of hardware.
What is your opinion? Which is the best simulation software, and why?
Re: What is the applied standard for simulating hardware here?
Posted: Sat Oct 24, 2009 11:46 am
by Combuster
There is no standard as such. The whole idea of testing is to have all situations covered with as little effort as possible. Which means that if you test with only one emulator, you want something that is most realistic. In which case I would go for Virtual PC. (which exposes most bugs that would also be seen on real hardware)
However, we do not only want to test. When something fails, we want to have some background information, and all the information we can get to solve the problem as quickly as possible. In which case Bochs logging and debugging features makes everything else pale.
Also, fixing yourself onto only one emulator/VM/system has the disadvantage that you only see the problems that arise from that specific system, and only use the features that are part of that system. In any case, testing regularly on different software, and more preferrably, real hardware, is the only way to get the most bugs out of your software.
In between the two extremes, there is QEmu, VirtualBox, and VMWare. If you must use only one, pick the one with the best balance of features for you.
Re: What is the applied standard for simulating hardware here?
Posted: Fri Oct 30, 2009 7:51 pm
by AndrewAPrice
I personally like VMWare.
Bochs is much slower than the other 'emulators' because it actually emulates each instruction of the system, trying to be as realistic as possible which is useful for debugging. The others, virtualize rater than emulate, they translate protected instructions and try to run most of the code on your native processor (IO is another story), giving you close-to-native speed.
If you have a modern system, then testing on Bochs can be a good indicator of if your OS is fast enough.
Re: What is the applied standard for simulating hardware here?
Posted: Sat Oct 31, 2009 11:29 am
by Tobiking
I prefer QEmu because of it's flexibility. You can choose between emulation and virtualization. There are also several types of network and graphic cards emulated. For ease of use, you can load multiboot compliant directly without a bootloader. QEmu can also simulate a tftp server for the guest, so you can have grub load your kernel and modules over the net instead of creating new images every time you change something.