Porting QEMU to run on Plan9
We are graduate students from CMU, working on an OS project. We want to port QEMU so it can run on Plan9 and Plan9 users can thus run Linux on Plan9 that way.
Is there a porting guide to port QEMU to a new host OS ? Anyone have suggestions on how to go about it?
Thanks,
Deepti & Bankim
Quoted 1 line · Bankim Bhavsar
Is there a porting guide to port QEMU to a new host OS ?
Maybe
http://libvncserver.sourceforge.net/qemu/qemu-porting.html
can help you.
Dirk
We had already visited that link. But it seems to us that the guide is for porting it to a new hardware platform, and not for porting it so it runs on a new OS. Are we wrong?
-Deepti & Bankim
Quoted 12 lines
Quoted 1 line · Bankim Bhavsar
Is there a porting guide to port QEMU to a new host OS ?
Maybe
http://libvncserver.sourceforge.net/qemu/qemu-porting.html
can help you.
Dirk
Hi,
Quoted 6 lines · Bankim Bhavsar
We are graduate students from CMU, working on an OS project. We want to port QEMU so it can run on Plan9 and Plan9 users can thus run Linux on Plan9 that way.
Is there a porting guide to port QEMU to a new host OS ? Anyone have suggestions on how to go about it?
I'd start by hacking configure. It is a plain shell script (no autoconf here). I presume you do not want to port to a new CPU? Then you only have to add new code for Plan 9 (just look for "SunOS", and imitate one of the platforms). Note that you have to disable user mode (this can only work when the emulated OS has the same set of syscalls).
After you can run configure successfully, I'd just start fixing compilation errors until I am done.
Hth,
Dscho
Hi,
Quoted 5 lines · Deepti Chheda
We had already visited that link. But it seems to us that the guide is for porting it to a new hardware platform, and not for porting it so it runs on a new OS. Are we wrong?
You are not completely wrong. It was intended as a guide line on how to port to a new OS _and_ CPU. Since you are doing just half of that, the text behind the link should help you tremendously: if there is a problem, the document should help you understand how to fix it.
Hth,
Dscho