xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Porting an OS to Xen
@ 2013-10-13 20:28 Simon Martin
  2013-10-13 23:07 ` Andrew Cooper
  0 siblings, 1 reply; 5+ messages in thread
From: Simon Martin @ 2013-10-13 20:28 UTC (permalink / raw)
  To: xen-devel


[-- Attachment #1.1.1: Type: text/plain, Size: 2343 bytes --]

Hi all,

I originally posted this on the xenproject Q&A forum, and it was 
suggested that I repost it here. If it would be better posted elsewhere 
then please let me know. Please skip the next paragraph if you're not 
interested in the why.

Over the last 2 decades I have been developing a real-time OS with one 
of my customers (I was an employee when we started, a consultant for the 
last 15 years). This runs on our own hardware (originally TI TMS320C3x, 
then MIPS64, then ARM9). The system started off 80% C 20% Assembly, and 
is now about 99% C and 1% Assembly (just the bootstrapping). We now have 
a requirement to run this OS in parallel with Windows. I have looked at 
various real-time hypervisors and Windows extensions, however I think we 
can get more mileage out of Xen due to the open source nature of the 
project.

I bought the book "The Definitive Guide to the Xen Hypervisor" as it was 
recommended by the xenproject Q&A forum and it is very interesting, 
however the examples are 32 bit and I am working 64 bit, and let's say 
that my x86 assembler is a bit rusty to say the least!

My questions (I am running Xen 4.1.4 on Debian Wheezy):

1.- I have looked at MirageOS but I think it is overkill for what I want 
to do. I just want a basic C wrapper to allow Xen to load my software, I 
would prefer not to have to learn OCaml, but if this is what it takes, 
then I'll have to do it.

2.- Is there any sample simple x86_64 code that I can work from to get 
out of the starting blocks?

3.- xl complains about my image not being a bzImage. Is there anyway I 
can avoid this error/warning? If not how do I convert my image to a 
bzImage? I'd rather not have to port in half the Linux bootstrap.

4.- Despite xl complaining about the kernel not being in bzImage format 
it still seems to run (I get the same error message from the MirageOS 
but the image loads and runs OK). However it crashes and I have no way 
of seeing what's going on. Is there any way to debug my guest startup 
inside Xen?

TIA and Regards.

--
  _     _  Debian GNU User   Simon Martin
| |   (_)_ __  _   ___  __  Project Manager
| |   | | '_ \| | | \ \/ /  Milliways
| |___| | | | | |_| |>  <   mailto: smartin@milliways.cl
|_____|_|_| |_|\__,_/_/\_\
Si Hoc Legere Scis Nimium Eruditionis Habes

[-- Attachment #1.1.2: Type: text/html, Size: 3725 bytes --]

[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 2136 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-10-14 16:37 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-13 20:28 Porting an OS to Xen Simon Martin
2013-10-13 23:07 ` Andrew Cooper
2013-10-14 16:22   ` Simon Martin
2013-10-14 16:31     ` Ian Campbell
2013-10-14 16:37     ` Andrew Cooper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).