Porting KVM (Written for Linux) to Mac OS X

Krishna picture Krishna · Mar 11, 2013 · Viewed 18.8k times · Source

I am trying to port KVM (Written for Linux) to Mac OS X.


Background work : I started going through Apple Developer Documents which lists out a procedure to do just that. I was not able to understand some parts of it, and the ones I understood and tried did not work well (as planned). As Apple Developer documents suggested, I also tried through fink, macports etc., But, these package management applications come into picture once the code is successfully compiled on the host, right? (Thats what I assumed). *Correct me if I am wrong. Right now, I am engaged in removing the errors faced, one by one. This method is taking painstakingly long amounts of time and effort, and also, I do not know, if this will ever work.


QUESTION : Please let me know whether my approach is right or wrong. If right, let me know what should be my next step. If wrong, let me know what should be my first step. P.S : Lots of the time allocated for the project has already gone in vain of trying different methods. Please help me in taking a definitive way to solve this problem.

Answer

duskwuff -inactive- picture duskwuff -inactive- · May 8, 2013

Your approach is incorrect.

KVM is inherently an extremely OS-specific application. Porting it to Mac OS X is not simply a matter of going through the code and fixing compile errors — significant parts of it will need to be rewritten entirely to work on OS X. (Just for starters, for instance, there is no /dev/kvm on OS X. VT support works in a completely different way.)

If any of this is news to you, TURN BACK NOW. KVM is not a simple piece of software. If you do not first understand what you are dealing with, you will not be able to port it, no matter how much time you spend on it.