Patch to fix Mini-OS compilation and configuration
Hello!
I was not able to build the minios in Xen unstable. The attached patch fixes include/hypervisor.h which was not updated when __HYPERVISOR_dom_mem_op disappeared. Further, xmalloc.c cannot find list.h, so I copied xen/list.h and removed the asserts and prefetching. Finally, I've added a domain config and modified the README to describe how to start it with the domain configuration.
// Simon
extras/mini-os/README +4 -9
@@ -23,13 +23,8 @@ - to build it just type make. -- copy image.final somewhere where dom0 can access it +- to start it do the following in domain0 (assuming xend is running) + # xm create domain_config -- in dom0 - # xi_create 16000 test - <domid> - # xi_build <domid> image.final 0 - # xi_start <domid> - -this prints out a bunch of stuff and then every 1000 timer interrupts the -system time. +this starts the kernel and prints out a bunch of stuff and then every +1000 timer interrupts the system time.
extras/mini-os/include/hypervisor.h +1 -1
@@ -329,7 +329,7 @@int ret; __asm__ __volatile__ ( TRAP_INSTR - : "=a" (ret) : "0" (__HYPERVISOR_dom_mem_op), + : "=a" (ret) : "0" (__HYPERVISOR_memory_op), _a1 (dom_mem_op) : "memory" );return ret;
extras/mini-os/domain_config new file +17 -0
@@ -0,0 +1,17 @@ +# -*- mode: python; -*- +#============================================================================ +# Python configuration setup for 'xm create'. +# This script sets the parameters used when a domain is created using 'xm create'. +# You use a separate script for each domain you want to create, or +# you can set the parameters for the domain on the xm command line. +#============================================================================ + +#---------------------------------------------------------------------------- +# Kernel image file. +kernel = "mini-os.elf" + +# Initial memory allocation (in megabytes) for the new domain. +memory = 32 + +# A name for your domain. All domains must have different names. +name = "Mini-OS"
extras/mini-os/include/list.h new file +184 -0
184 lines not on this page · raw message
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel