Xen Project Q&A Forum: First Line Help for Simple Questions

This is your chance to ask questions and provide answers about basic use of the Xen Project software. For debugging problems and for more complex issues, consider using the xen-users mailing list instead. You can find information about xen-users under "HELP | Mailing Lists" in the navigation bar above.

Where to start porting an OS to Xen

posted in Hypervisor
Thursday, October 10 2013, 08:21 PM
0
Hi all,

I'm not sure whether this is the right place for this question. If not, sorry for any inconvenience and could you please tell me where to post it.

I am currently work on porting an embedded real-time OS (totally written by my a customer and I in C and running on proprietary hardware) to run in parallel with Windows on an x86 box.

I have looked at various Windows Extensions and HyperVisors, but coming from a Linux background I feel that Xen is the way to go.

I would like to implement the minimum requirements for Xen to recognize this as a paravirtualized OS and run it, however I can't find any documentation about porting a new OS to Xen.

I've checked out mirage OS, which seems to be a possible alternative, however I think it's more than I need, and I would prefer to stick to C as I have no OCaml experience either. If I go down this route (already started a little test) then my OCaml main will just be a wrapper to a C library! Seems a waste to me.

Can someone point me to any documentation or give me any pointers on how to port an OS to Xen?

Accepted Answer

Friday, October 11 2013, 08:04 PM - #permalink
0
Due to the highly technical nature of this topic, it is probably best addressed on one of the mailing lists. I haven't located a current document on this subject (although maybe someone knows of one I haven't located).

I did find this link which indicates that the subject may be dealt with in the book, The Definitive Guide to the Xen Hypervisor (which is a little old, but probably reasonable):

http://books.google.com/books?id=km99jpOs4N4C&pg=PA273&lpg=PA273&dq=porting+os+to+xen&source=bl&ots=jNoMTPK_Xr&sig=NNcF0BwQQqnSZ58w15AepCmz9bM&hl=en&sa=X&ei=HldYUvWSDbWo4APHn4HACQ&ved=0CDUQ6AEwAjgK#v=onepage&q=porting%20os%20to%20xen&f=false

But I think the mailing lists are the best place for this query, since you'll probably benefit from the responses of Xen developers who don't hang out in the Q&A forum yet.
The reply is currently minimized Show
Responses (1)
  • Accepted Answer

    Saturday, October 12 2013, 02:30 PM - #permalink
    0
    Thanks Russell,

    Luckily Amazon had the book you recommended for Kindle download, so I did. Very interesting reading and supposedly it has a step by step guide to creating a paravirtualized OS. I haven't got there yet, but it looks promising.

    If I don't get any joy from the book I'll sign up to the mail list and ask there,

    Regards.
    The reply is currently minimized Show
Your Reply