view extras/mini-os/README @ 7238:971e7c7411b3

Raise an exception if an error appears on the pipes to our children, and make
sure that the child's pipes are closed even under that exception. Move the
handling of POLLHUP to the end of the loop, so that we guarantee to read any
remaining data from the child if POLLHUP and POLLIN appear at the same time.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@ewan
date Thu Oct 06 10:13:11 2005 +0100 (2005-10-06)
parents 06d84bf87159
children 0839db0aa611
line source
1 Minimal OS
2 ----------
4 This shows some of the stuff that any guest OS will have to set up.
6 This includes:
8 * installing a virtual exception table
9 * handling virtual exceptions
10 * handling asynchronous events
11 * enabling/disabling async events
12 * parsing start_info struct at start-of-day
13 * registering virtual interrupt handlers (for timer interrupts)
14 * a simple page and memory allocator
15 * minimal libc support
17 Stuff it doesn't show:
19 * modifying page tables
20 * network code
21 * block-device code
24 - to build it just type make.
26 - to start it do the following in domain0 (assuming xend is running)
27 # xm create domain_config
29 this starts the kernel and prints out a bunch of stuff and then every
30 1000 timer interrupts the system time.