aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/mm.c
Commit message (Collapse)AuthorAgeFilesLines
* tools: drop ia64 supportIan Campbell2012-09-121-2/+0
| | | | | | | | | | | | | | | | | Removed support from libxc and mini-os. This also took me under xen/include/public via various symlinks. Dropped tools/debugger/xenitp entirely, it was described upon commit as: "Xenitp is a low-level debugger for ia64" and doesn't appear to be linked into the build anywhere. 99 files changed, 14 insertions(+), 32361 deletions(-) Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Ian Campbell <ian.campbell@citrix.com>
* stubdom/minios: re-structure headersKeir Fraser2009-10-011-6/+6
| | | | | | | | | As part of making stubdom usable on NetBSD, it is necessary to restructure the minios headers to avoid conflicts with NetBSD's crossbuild toolchain. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* stubdom: use host's gccKeir Fraser2008-07-041-0/+2
| | | | | | | | This makes stubdom use the host's gcc instead of downloading/compiling binutils+gcc. That requires a bunch of changes and even uncovered a few bugs, but saves a lot of time. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: add proper shutdown facilitiesKeir Fraser2008-06-091-0/+4
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: Fix width of shifted 1Keir Fraser2008-05-241-19/+19
| | | | | | Shifting 1 more that 32 bits requires 1 to be long-typed. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: sparse application's BSS by linking it separately first, putKeir Fraser2008-04-161-0/+12
| | | | | | | markers at its beginning and end, and then link with mini-os. That permits to stick a bit more to upstream qemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Add stubdomain support. See stubdom/README for usage details.Keir Fraser2008-02-121-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move PAGE_SIZE and STACK_SIZE into __PAGE_SIZE and __STACK_SIZE in arch_limits.h so as to permit getting them from there without pulling all the internal Mini-OS defines. - Setup a xen-elf cross-compilation environment in stubdom/cross-root - Add a POSIX layer on top of Mini-OS by linking against the newlib C library and lwIP, and implementing the Unixish part in mini-os/lib/sys.c - Cross-compile zlib and libpci too. - Add an xs.h-compatible layer on top of Mini-OS' xenbus. - Cross-compile libxc with an additional xc_minios.c and a few things disabled. - Cross-compile ioemu with an additional block-vbd, but without sound, tpm and other details. A few hacks are needed: - Align ide and scsi buffers at least on sector size to permit direct transmission to the block backend. While we are at it, just page-align it to possibly save a segment. Also, limit the scsi buffer size because of limitations of the block paravirtualization protocol. - Allocate big tables dynamically rather that letting them go to bss: when Mini-OS gets installed in memory, bss is not lazily allocated, and doing so during Mini-OS is unnecessarily trick while we can simply use malloc. - Had to change the Mini-OS compilation somehow, so as to export Mini-OS compilation flags to the Makefiles of libxc and ioemu. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* Create P2M map during Mini-OS boot (fixes 'xm dump-core').kfraser@localhost.localdomain2007-03-011-0/+2
| | | | Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* [MINIOS] Refactored mm.c and sched.c. x86 arch specific code got moved tokfraser@localhost.localdomain2006-11-221-370/+6
| | | | | | | | | arch/x86/mm.c and arch/x86/sched.c. Header files were also refactored: arch specific code got moved to include/x86/arch_mm.h and include/x86/sched_mm.h. Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* [MINIOS] Move initialisation of events (masking event channels)kfraser@localhost.localdomain2006-11-171-5/+2
| | | | | | | earlier during the boot process. Otherwise 64bit guests would sometimes crash. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* [MINI-OS] Fix a bug which prevented map_frames being used more than once.sos22@douglas.cl.cam.ac.uk2006-07-251-1/+1
| | | | | | Found by John D. Ramsdell <ramsdell@mitre.org> Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [MINIOS]Mapping page frames on demand added to the memory management.kfraser@localhost.localdomain2006-07-051-1/+122
| | | | | | Signed-off-by: Steven Smith <sos22@cam.ac.uk> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* [MINIOS] Various address-space fixes.kaf24@firebug.cl.cam.ac.uk2006-05-311-13/+77
| | | | | | | | | | | | | 1. Make Mini-OS start from 0x0. 2. Fixes the pagetable builder to handle half full, but already mapped pt frames.=20 3. Add a bounds check to ensure than Mini-OS does not try to use Xen virtual space. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk> Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
* [MINIOS] PAE support.kaf24@firebug.cl.cam.ac.uk2006-05-191-33/+34
| | | | | Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com>
* Allow linking of mini-os with application-specific object code.kaf24@firebug.cl.cam.ac.uk2006-05-151-1/+0
| | | | | | From: Jacob Gorm Hansen Signed-off-by: Keir Fraser <keir@xensource.com>
* The patch removes old Xenbus files, fixes 0 length mmu_updates table bug kaf24@firebug.cl.cam.ac.uk2006-03-241-1/+1
| | | | | | | | | (bugfix by Melvin Anderson) and adds missing console.h header file (again spotted by Melvin). Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Fix mini-os xenbus.kaf24@firebug.cl.cam.ac.uk2006-03-241-1/+0
| | | | | | | From: Grzegorz Milos <gm281@cam.ac.uk> Signed-off-by: Keir Fraser <keir@xensource.com>
* Implement console for Mini-os and also fix 2 bugs:kaf24@firebug.cl.cam.ac.uk2006-03-151-0/+4
| | | | | | | | | a) in initialising new page table frames b) in initialising idle thread. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* 64 bit pagetable builder added to mm.ckaf24@firebug.cl.cam.ac.uk2006-03-091-95/+167
| | | | | | | | Signed-off-by: Aravindh Puthiyaparambil <aravindh.puthiyaparambil@unisys.com> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Get rid of anonymous unions in public header files.kaf24@firebug.cl.cam.ac.uk2005-09-141-1/+1
| | | | | | Signed-off-by: Keir Fraser <keir@xensource.com>
* Xenbus implementation ported from Linux to Mini-os, simple thread support ↵kaf24@firebug.cl.cam.ac.uk2005-09-091-6/+4
| | | | | | | | | | | introduced to simplify the porting. 64 bit version of Mini-os now compiles, but does not work because of the pagetables and some bits of scheduler not being written. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* The patch removes broken, and very complicated malloc inkaf24@firebug.cl.cam.ac.uk2005-08-261-5/+4
| | | | | | | | | favour of much simpler (and working) Xen's allocator (xmalloc by Rusty). Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Memory management fixes. Page tables are created, buddy allocator now kaf24@firebug.cl.cam.ac.uk2005-08-251-78/+258
| | | | | | | | has ability to free memory (as well as allocate it). Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* bitkeeper revision 1.1185 (420cf3c8-bMMcsnH1kMVRwy5AQ-ecg)kaf24@scramble.cl.cam.ac.uk2005-02-111-0/+2
| | | | | | | Various mini-os and Xen fixes. The M2P table is now definitely accessible (read-only) from guest context. Signed-off-by: keir.fraser@cl.cam.ac.uk
* bitkeeper revision 1.520 (3f8d13d8qVVqxcYD--4cXYs5egqNyg)kaf24@scramble.cl.cam.ac.uk2003-10-151-85/+26
| | | | | | | | | | | | Many files: Fix the minos license so that it is usable for XP and BSD ports. minios.lds: Rename: extras/mini-os/vmlinux.lds -> extras/mini-os/minios.lds .del-list.h~d612a8726e8d42e: Delete: extras/mini-os/h/list.h .del-COPYING~1f9753354580bd13: Delete: extras/mini-os/COPYING
* bitkeeper revision 1.490 (3f831e5fpXnszWjg8lV_9law4lUnbg)kaf24@scramble.cl.cam.ac.uk2003-10-071-1/+13
| | | | | | | | COPYING: new file mm.c, hypervisor.c: Clearly GPL the mini-os.
* bitkeeper revision 1.483 (3f81a3e2iM-0WXaGxUS3ywM3_KZqLw)iap10@labyrinth.cl.cam.ac.uk2003-10-061-0/+375
move mini-os to extras directory