]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/mini-os.git/log
people/liuw/libxenctrl-split/mini-os.git
17 years agominios: set text and rodata read-only, free unused pages 0 and 1
Keir Fraser [Fri, 18 Jan 2008 15:22:17 +0000 (15:22 +0000)]
minios: set text and rodata read-only, free unused pages 0 and 1
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agoAdd FS backend/frontend drivers (frontend in minios only).
Keir Fraser [Fri, 18 Jan 2008 13:33:37 +0000 (13:33 +0000)]
Add FS backend/frontend drivers (frontend in minios only).

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
17 years agominios: add blkfront
Keir Fraser [Thu, 17 Jan 2008 16:41:46 +0000 (16:41 +0000)]
minios: add blkfront

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: support several netfronts
Keir Fraser [Thu, 17 Jan 2008 15:50:48 +0000 (15:50 +0000)]
minios: support several netfronts

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: add xenbus token support and separate watch event queues
Keir Fraser [Thu, 17 Jan 2008 15:20:02 +0000 (15:20 +0000)]
minios: add xenbus token support and separate watch event queues

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: add realloc
Keir Fraser [Thu, 17 Jan 2008 15:06:30 +0000 (15:06 +0000)]
minios: add realloc

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Tim Deegan <tim.deegan@eu.citrix.com>
17 years agominios: make stack size configurable
Keir Fraser [Thu, 17 Jan 2008 14:41:44 +0000 (14:41 +0000)]
minios: make stack size configurable

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
17 years agominios: add wait_event_deadline
Keir Fraser [Thu, 17 Jan 2008 14:41:12 +0000 (14:41 +0000)]
minios: add wait_event_deadline

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
Signed-off-by: Tim Deegan <tim.deegan@eu.citrix.com>
17 years agominios: add trydown
Keir Fraser [Thu, 17 Jan 2008 14:40:55 +0000 (14:40 +0000)]
minios: add trydown

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: use ASSERT for BUG_ON
Keir Fraser [Thu, 17 Jan 2008 14:40:23 +0000 (14:40 +0000)]
minios: use ASSERT for BUG_ON

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: Add exit_thread prototype. Make sure exit_thread doesn't
Keir Fraser [Thu, 17 Jan 2008 14:40:06 +0000 (14:40 +0000)]
minios: Add exit_thread prototype. Make sure exit_thread doesn't
return by accident.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: Add noreturn attribute to do_exit
Keir Fraser [Thu, 17 Jan 2008 14:39:45 +0000 (14:39 +0000)]
minios: Add noreturn attribute to do_exit

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
17 years agominios: Optimize IA64's get_current()
Keir Fraser [Thu, 17 Jan 2008 14:39:21 +0000 (14:39 +0000)]
minios: Optimize IA64's get_current()

Let gcc access r13 itself, leading to better code

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years agoIn C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) is
Keir Fraser [Fri, 28 Dec 2007 15:23:28 +0000 (15:23 +0000)]
In C99 (7.19.6.2.10), the behavior of scanf("stuff... %n", ..., &n) is
said to be undefined if the value to be put is n can't fit.  I guess
we can safely consider that the same applies to printf.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years agomini-os: No -fpic when building for x86.
Keir Fraser [Tue, 4 Dec 2007 10:11:54 +0000 (10:11 +0000)]
mini-os: No -fpic when building for x86.
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Catch NULL dereferences
Keir Fraser [Wed, 28 Nov 2007 12:42:17 +0000 (12:42 +0000)]
[Mini-OS] Catch NULL dereferences

Unmap page 0 (only used early at boot) so as to catch NULL dereferences.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix strrchr() when string doesn't contain the character.
Keir Fraser [Wed, 28 Nov 2007 12:41:41 +0000 (12:41 +0000)]
[Mini-OS] Fix strrchr() when string doesn't contain the character.
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Make gnttab allocation/free safe
Keir Fraser [Wed, 28 Nov 2007 12:40:57 +0000 (12:40 +0000)]
[Mini-OS] Make gnttab allocation/free safe

Add a semaphore to protect gnttab_list from exhaustion, and disable
callbacks during allocation/free.  Fix the network frontend accordingly.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years agominios: Revert 16206:7b5b65fbaf61 (xenbus wait fixup)
Keir Fraser [Tue, 27 Nov 2007 12:49:16 +0000 (12:49 +0000)]
minios: Revert 16206:7b5b65fbaf61 (xenbus wait fixup)
Already fixed by 14432:f40079acf646.

17 years ago[Mini-OS] Fix domain blocking race
Keir Fraser [Sat, 24 Nov 2007 13:31:39 +0000 (13:31 +0000)]
[Mini-OS] Fix domain blocking race

A callback which wakes a thread may happen between the moment
schedule() gives hand to the idle thread and the latter blocks the
domain.  Idle hence needs to atomically check that no thread is
running and block, else awoken threads may have to wait up to 10
seconds.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Permit x86_64 trap handlers to return
Keir Fraser [Sat, 24 Nov 2007 13:31:01 +0000 (13:31 +0000)]
[Mini-OS] Permit x86_64 trap handlers to return

Trap handlers sometimes fix the problem, so they need to be able to
return.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Make sure schedule() is called safely
Keir Fraser [Sat, 24 Nov 2007 13:29:20 +0000 (13:29 +0000)]
[Mini-OS] Make sure schedule() is called safely

If a thread tries to sleep from a callback or with callbacks disabled,
Mini-OS will completely lock, so make sure this never happens.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix netfront xmit overflow
Keir Fraser [Sat, 24 Nov 2007 13:28:54 +0000 (13:28 +0000)]
[Mini-OS] Fix netfront xmit overflow

Fix xmit overflow by making netfront_xmit sleep until
network_tx_buf_gc() frees an xmit request.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix net backend path leak
Keir Fraser [Sat, 24 Nov 2007 13:28:27 +0000 (13:28 +0000)]
[Mini-OS] Fix net backend path leak

Free backend path after use.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Make wake_up callback-safe
Keir Fraser [Sat, 24 Nov 2007 13:27:59 +0000 (13:27 +0000)]
[Mini-OS] Make wake_up callback-safe

As it may compete with event handlers waking wait queues, wake_up
needs to be callback-safe.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix init_waitqueue_entry
Keir Fraser [Sat, 24 Nov 2007 13:27:32 +0000 (13:27 +0000)]
[Mini-OS] Fix init_waitqueue_entry

Fix initialization of thread_list in init_waitqueue_entry().

Signed-off-by: Samuel Thibault <samuel.thibault@xensource.com>
17 years ago[Mini-OS] Add init_SEMAPHORE
Keir Fraser [Sat, 24 Nov 2007 13:27:08 +0000 (13:27 +0000)]
[Mini-OS] Add init_SEMAPHORE

Add init_SEMAPHORE() to dynamically initialize semaphores.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Make semaphores callback-safe
Keir Fraser [Sat, 24 Nov 2007 13:26:39 +0000 (13:26 +0000)]
[Mini-OS] Make semaphores callback-safe

One may want to use semaphores in event handlers to wake threads
waiting for a resource, so semaphores then need to be callback-safe.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Add strrchr()
Keir Fraser [Fri, 23 Nov 2007 16:42:44 +0000 (16:42 +0000)]
[Mini-OS] Add strrchr()

Add strrchr(), useful e.g. for grabbing the last part of a xenbus
path.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Add ENOTSUP
Keir Fraser [Fri, 23 Nov 2007 16:42:23 +0000 (16:42 +0000)]
[Mini-OS] Add ENOTSUP

Add missing ENOTSUP by defining it to EOPNOTSUPP like in Linux.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Move _ctype into a module
Keir Fraser [Fri, 23 Nov 2007 16:41:54 +0000 (16:41 +0000)]
[Mini-OS] Move _ctype into a module

Move the _ctype array into its own module, instead of having it
defined in a header.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Make bind_virq return the port
Keir Fraser [Fri, 23 Nov 2007 16:25:59 +0000 (16:25 +0000)]
[Mini-OS] Make bind_virq return the port

Make bind_virq() return the port bound to the irq, which is useful
e.g. for masking/unmasking it.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix x86 arch_switch_thread
Keir Fraser [Fri, 23 Nov 2007 16:23:28 +0000 (16:23 +0000)]
[Mini-OS] Fix x86 arch_switch_thread

Fix x86 arch_switch_thread by making it pure assembly.
There were missing general register clobbers for x86_64, and BP should
theorically be clobbered too, but gcc does not believe that, so the
only simple safe solution is to use pure assembly.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Optimize get_current()
Keir Fraser [Fri, 23 Nov 2007 16:23:03 +0000 (16:23 +0000)]
[Mini-OS] Optimize get_current()

Let gcc perform the computation with SP itself, leading to yet better
code.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix stack closures
Keir Fraser [Fri, 23 Nov 2007 16:22:36 +0000 (16:22 +0000)]
[Mini-OS] Fix stack closures

So as to make backtracing tools happy, correctly close x86 stacks for
new threads as well as on callback in the x86_32 case since there is
no unwind marker.

Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years ago[Mini-OS] Fix x86 initial stack alignment
Keir Fraser [Fri, 23 Nov 2007 16:22:13 +0000 (16:22 +0000)]
[Mini-OS] Fix x86 initial stack alignment

This fixes the initial stack alignment for x86, which is required for
current to return a fine NULL instead of a random value or possibly
crash during initialization.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
17 years agominios: xenbus wait fixup
Keir Fraser [Wed, 24 Oct 2007 13:36:18 +0000 (14:36 +0100)]
minios: xenbus wait fixup
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agominios: Make NSEC_TO_USEC/NSEC_TO_SEC macros expression safe.
Keir Fraser [Wed, 24 Oct 2007 13:35:19 +0000 (14:35 +0100)]
minios: Make NSEC_TO_USEC/NSEC_TO_SEC macros expression safe.
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agominios: Fix get_current() inline asm.
Keir Fraser [Tue, 16 Oct 2007 08:30:20 +0000 (09:30 +0100)]
minios: Fix get_current() inline asm.
From: Samuel Thibault <samuel.thibault@xensource.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agoMiniOS: no-stack-protector added to the cflags if needed,
Keir Fraser [Tue, 9 Oct 2007 15:06:50 +0000 (16:06 +0100)]
MiniOS: no-stack-protector added to the cflags if needed,
and the default domain config file fixed.

From: Grzegorz Milos <gm281@cam.ac.uk>
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agominios: Remove unnecessary padding and unused sections from x86/64
Keir Fraser [Tue, 25 Sep 2007 09:12:49 +0000 (10:12 +0100)]
minios: Remove unnecessary padding and unused sections from x86/64
linker script.
Signed-off-by: Keir Fraser <keir@xensource.com>
17 years agomerge with xen-unstable.hg
Alex Williamson [Sun, 12 Aug 2007 20:50:02 +0000 (14:50 -0600)]
merge with xen-unstable.hg

17 years ago[MINIOS] fix x86_64 p2m map and CFLAGS
Tim Deegan [Thu, 2 Aug 2007 08:02:08 +0000 (09:02 +0100)]
[MINIOS] fix x86_64 p2m map and CFLAGS
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
17 years ago[IA64][MINIOS] PKR support
Alex Williamson [Tue, 31 Jul 2007 00:14:29 +0000 (18:14 -0600)]
[IA64][MINIOS] PKR support

- adds optimization feature for region 7 identity mapping
- adds protection keys to region 5 and region 7 addresses,
  may be used for testing the hypervisor protection key support

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
17 years ago[MINIOS][IA64] mini-os without linux-optimization in hypervisor
Alex Williamson [Tue, 26 Jun 2007 22:24:41 +0000 (16:24 -0600)]
[MINIOS][IA64] mini-os without linux-optimization in hypervisor

Make mini-os runnable again without the special linux optimization for the
identity mapping in the hypervisor.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agominios: Fix xenbus request-id release.
Keir Fraser [Fri, 6 Apr 2007 09:15:31 +0000 (10:15 +0100)]
minios: Fix xenbus request-id release.
From: Jacob Gorm Hansen <jacobg@diku.dk>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 21:19:38 +0000 (15:19 -0600)]
merge with xen-unstable.hg

18 years ago[IA64][MINIOS] Make Endian-ness build changeable on the command line
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 16:07:11 +0000 (10:07 -0600)]
[IA64][MINIOS] Make Endian-ness build changeable on the command line

Now you can do 'BIGENDIAN=y make'

Signed-off-by: Alex Williamson <alex.williamson@hp.com>
18 years ago[IA64][MINIOS] Fixed some big-endian bugs and add HYPERVISOR_suspend
awilliam@xenbuild2.aw [Tue, 20 Mar 2007 15:51:45 +0000 (09:51 -0600)]
[IA64][MINIOS] Fixed some big-endian bugs and add HYPERVISOR_suspend

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agominios: Various small fixes.
kaf24@firebug.cl.cam.ac.uk [Mon, 19 Mar 2007 09:34:42 +0000 (09:34 +0000)]
minios: Various small fixes.

- Fixed type of variables in hypervisor.c.
- Fixed not removing a waiter from watch_queue.
- Make wait_for_watch() global accessible.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agominios: Fix an extern declaration and add an extra 'const' to
kfraser@localhost.localdomain [Thu, 15 Mar 2007 15:27:08 +0000 (15:27 +0000)]
minios: Fix an extern declaration and add an extra 'const' to
definition of a constant set of constant error strings.
Issues identified by Armand Puccetti.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[IA64][MINIOS] cleanup ia64_boot_paramP and add ARCH_LDFLAGS
awilliam@xenbuild2.aw [Mon, 12 Mar 2007 15:43:48 +0000 (09:43 -0600)]
[IA64][MINIOS] cleanup ia64_boot_paramP and add ARCH_LDFLAGS

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Wed, 7 Mar 2007 19:38:28 +0000 (12:38 -0700)]
merge with xen-unstable.hg

18 years agoCreate P2M map during Mini-OS boot (fixes 'xm dump-core').
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:23:44 +0000 (12:23 +0000)]
Create P2M map during Mini-OS boot (fixes 'xm dump-core').
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years agoFix PAE Mini-OS build.
kfraser@localhost.localdomain [Thu, 1 Mar 2007 12:23:04 +0000 (12:23 +0000)]
Fix PAE Mini-OS build.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[IA64][MINIOS] Make mini-os ia64 cross compile-able
awilliam@xenbuild2.aw [Wed, 28 Feb 2007 16:40:36 +0000 (09:40 -0700)]
[IA64][MINIOS] Make mini-os ia64 cross compile-able

Signed-off-by: Tristan Gingold <tgingold@free.fr>
18 years ago[IA64][MINIOS] Build fix
awilliam@xenbuild2.aw [Fri, 23 Feb 2007 21:06:08 +0000 (14:06 -0700)]
[IA64][MINIOS] Build fix

Fix specifier changed in common minios makerules.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Tue, 20 Feb 2007 19:58:22 +0000 (12:58 -0700)]
merge with xen-unstable.hg

18 years agominios: Fix xenbus-id allocation loop.
kfraser@localhost.localdomain [Mon, 19 Feb 2007 15:50:29 +0000 (15:50 +0000)]
minios: Fix xenbus-id allocation loop.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[IA64][MINIOS] Port of mini-os to ia64
awilliam@xenbuild2.aw [Thu, 15 Feb 2007 20:13:36 +0000 (13:13 -0700)]
[IA64][MINIOS] Port of mini-os to ia64

ia64 specific parts of mini-os.

Minimal config:

# Kernel image file.
kernel = "mini-os.gz"
# Initial memory allocation (in megabytes) for the new domain.
memory = 64
# A name for your domain.
name = "Mini-OS"

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agominios: build system cleanups.
kfraser@localhost.localdomain [Thu, 15 Feb 2007 14:18:21 +0000 (14:18 +0000)]
minios: build system cleanups.

- Added ARCH_LDFLAGS for architecture specific LDFLAGS
- Fixed build dependencies after changing makerule files
- Fixed ARCH_CFLAGS for 64bit guest, added ARCH_ASFLAGS
- Couple of variable renames

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years agominios: Fix netfront for ia64.
kfraser@localhost.localdomain [Tue, 6 Feb 2007 23:12:59 +0000 (23:12 +0000)]
minios: Fix netfront for ia64.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years agominios: Fix bug in xenbus implementation.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:55:56 +0000 (15:55 +0000)]
minios: Fix bug in xenbus implementation.
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years agominios: Fix ret_from_exception routine. Stack consistency is now preserved.
kfraser@localhost.localdomain [Fri, 2 Feb 2007 15:30:49 +0000 (15:30 +0000)]
minios: Fix ret_from_exception routine. Stack consistency is now preserved.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years agominios : netfront driver fixes.
kaf24@localhost.localdomain [Fri, 26 Jan 2007 13:51:00 +0000 (13:51 +0000)]
minios : netfront driver fixes.

- Handle returned backend==NULL || mac==NULL, this leads sometimes to a crash.
- Remove unnecessary (and bogus) initialisation of np->rx.req_prod_pvt

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[MINIOS] More cleanups for the ia64 port.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 15:09:39 +0000 (15:09 +0000)]
[MINIOS] More cleanups for the ia64 port.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINIOS] Fix compile warnings with -O.
kfraser@localhost.localdomain [Fri, 19 Jan 2007 15:08:15 +0000 (15:08 +0000)]
[MINIOS] Fix compile warnings with -O.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINIOS] Added domctl and sysctl hypercalls to the
kfraser@localhost.localdomain [Fri, 19 Jan 2007 12:11:52 +0000 (12:11 +0000)]
[MINIOS] Added domctl and sysctl hypercalls to the
architecture-specific header files. Also increased the
__XEN_INTERFACE_VERSION__ to 0x00030205.

Signed-off-by: Derek Murray <Derek.Murray@cl.cam.ac.uk>
18 years ago[MINIOS] New make structure to support different architectures.
kfraser@localhost.localdomain [Wed, 17 Jan 2007 15:09:50 +0000 (15:09 +0000)]
[MINIOS] New make structure to support different architectures.
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINIOS] Clean up final link stage of the build.
kaf24@firebug.cl.cam.ac.uk [Mon, 15 Jan 2007 12:25:04 +0000 (12:25 +0000)]
[MINIOS] Clean up final link stage of the build.

Allow extra application objects to be linked against a partial link of
minios with non-global names localised. For now we assume that global
names ill be assigned a xenos_ prefix in due course. We may decide to
choose a different prefix.

Those who wish to finish the link from an external Makefile can link
their own objects against mini-os.o (which must be first in link
order!) and specify the appropriate architecture linker script.

Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[MINIOS] Update __XEN_INTERFACE_VERSION__
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:27:09 +0000 (15:27 +0000)]
[MINIOS] Update __XEN_INTERFACE_VERSION__
Signed-off-by: Keir Fraser <keir@xensource.com>
18 years ago[MINIOS] Implement a network frontend driver.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:18:24 +0000 (15:18 +0000)]
[MINIOS] Implement a network frontend driver.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Fix grant-entry freelist maintenance.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:16:05 +0000 (15:16 +0000)]
[MINIOS] Fix grant-entry freelist maintenance.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Support xenbus watches.
kfraser@localhost.localdomain [Fri, 12 Jan 2007 15:15:25 +0000 (15:15 +0000)]
[MINIOS] Support xenbus watches.
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years agomerge with xen-unstable.hg
awilliam@xenbuild2.aw [Thu, 14 Dec 2006 15:57:36 +0000 (08:57 -0700)]
merge with xen-unstable.hg

18 years ago[POWERPC] Merge with xen-unstable.hg.
Hollis Blanchard [Tue, 12 Dec 2006 15:58:42 +0000 (09:58 -0600)]
[POWERPC] Merge with xen-unstable.hg.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[POWERPC] Merge in outstanding changes from xenppc-unstable.hg.
Hollis Blanchard [Tue, 12 Dec 2006 15:56:06 +0000 (09:56 -0600)]
[POWERPC] Merge in outstanding changes from xenppc-unstable.hg.
It's a long story, but basically a small divergence in xenppc-unstable meant a
large number of changesets couldn't be directly imported to xen-unstable, so
this changeset includes all of them.
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
18 years ago[MINIOS] Improved unbind_all_ports().
kfraser@localhost.localdomain [Thu, 30 Nov 2006 17:17:28 +0000 (17:17 +0000)]
[MINIOS] Improved unbind_all_ports().
Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Switched to new interface for HYPERVISOR_sched_op().
kfraser@localhost.localdomain [Mon, 27 Nov 2006 10:23:19 +0000 (10:23 +0000)]
[MINIOS] Switched to new interface for HYPERVISOR_sched_op().
Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINIOS] Exports a function to have all Xen ports unbound.
kfraser@localhost.localdomain [Mon, 27 Nov 2006 10:03:35 +0000 (10:03 +0000)]
[MINIOS] Exports a function to have all Xen ports unbound.

This is necessary when using mini-os as the foundation for a boot-loader.

Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
18 years ago[MINIOS] Refactored mm.c and sched.c. x86 arch specific code got moved to
kfraser@localhost.localdomain [Wed, 22 Nov 2006 10:11:36 +0000 (10:11 +0000)]
[MINIOS] Refactored mm.c and sched.c. x86 arch specific code got moved to
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>
18 years ago[MINIOS] Delay enabling event delivery at start of day.
kfraser@localhost.localdomain [Mon, 20 Nov 2006 10:33:35 +0000 (10:33 +0000)]
[MINIOS] Delay enabling event delivery at start of day.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[MINIOS] Refactor spinlock header for multi-arch support.
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:18:28 +0000 (09:18 +0000)]
[MINIOS] Refactor spinlock header for multi-arch support.

I separated the spinlock parts special to the x86 architecture and
moved these to include/x86/arch_spinlock.h. The common code is now in
include/spinlock.h.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINIOS] Event channel hypercall update for 64-bit guests.
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:16:51 +0000 (09:16 +0000)]
[MINIOS] Event channel hypercall update for 64-bit guests.
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[MINIOS] Move initialisation of events (masking event channels)
kfraser@localhost.localdomain [Fri, 17 Nov 2006 09:16:27 +0000 (09:16 +0000)]
[MINIOS] Move initialisation of events (masking event channels)
earlier during the boot process. Otherwise 64bit guests would
sometimes crash.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[MINIOS] Add timer support.
kfraser@localhost.localdomain [Wed, 15 Nov 2006 09:33:01 +0000 (09:33 +0000)]
[MINIOS] Add timer support.

Based on an original patch by Robert Kaiser.

Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[MINIOS] Added a new file arc/x86/setup.c and moved some x86 specific
kfraser@localhost.localdomain [Sat, 23 Sep 2006 13:00:38 +0000 (14:00 +0100)]
[MINIOS] Added a new file arc/x86/setup.c and moved some x86 specific
initialization stuff from kernel.c there. Two new functions are added
to handle this.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINIOS] Fix to use new event-channel API properly.
kaf24@firebug.cl.cam.ac.uk [Fri, 15 Sep 2006 10:07:25 +0000 (11:07 +0100)]
[MINIOS] Fix to use new event-channel API properly.
Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
18 years ago[MINIOS] Declare a __XEN_INTERFACE_VERSION__ to fix the build
Anil Madhavapeddy [Thu, 31 Aug 2006 11:07:46 +0000 (12:07 +0100)]
[MINIOS] Declare a __XEN_INTERFACE_VERSION__ to fix the build

18 years ago[MINIOS] Fix the build after start_info interface changes.
kfraser@localhost.localdomain [Wed, 16 Aug 2006 15:48:45 +0000 (16:48 +0100)]
[MINIOS] Fix the build after start_info interface changes.
Signed-off-by: Anil Madhavapeddy <anil@xensource.com>
18 years ago[MINIOS] A first step to re-architecture mini-os for a port to ia64.
kfraser@localhost.localdomain [Thu, 10 Aug 2006 09:43:20 +0000 (10:43 +0100)]
[MINIOS] A first step to re-architecture mini-os for a port to ia64.
Create architecture specific directories below mini-os for sources
and below mini-os/include for headers.

Signed-off-by: Dietmar Hahn <dietmar.hahn@fujitsu-siemens.com>
18 years ago[MINI-OS] Add a function mapping grant table error codes to strings.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:06:27 +0000 (14:06 +0100)]
[MINI-OS] Add a function mapping grant table error codes to strings.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Add evtchn_bind_interdomain to mini-os, allowing clients to
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:05:02 +0000 (14:05 +0100)]
[MINI-OS] Add evtchn_bind_interdomain to mini-os, allowing clients to
bind to interdomain event channels.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Extend alloc_unbound so that the remote domain isn't always dom0.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:03:54 +0000 (14:03 +0100)]
[MINI-OS] Extend alloc_unbound so that the remote domain isn't always dom0.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Clean up event channel types in mini-os.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:02:49 +0000 (14:02 +0100)]
[MINI-OS] Clean up event channel types in mini-os.

Signed-off-by: John D. Ramsdell <ramsdell@mitre.org>
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] unbind_virq is broken and nobody uses it. Remove it.
sos22@douglas.cl.cam.ac.uk [Fri, 28 Jul 2006 13:00:37 +0000 (14:00 +0100)]
[MINI-OS] unbind_virq is broken and nobody uses it.  Remove it.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINI-OS] Fix a bug which prevented map_frames being used more than once.
sos22@douglas.cl.cam.ac.uk [Tue, 25 Jul 2006 09:59:02 +0000 (10:59 +0100)]
[MINI-OS] Fix a bug which prevented map_frames being used more than once.
Found by John D. Ramsdell <ramsdell@mitre.org>

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
18 years ago[MINIOS] Mapping page frames on demand added to the memory management.
kfraser@localhost.localdomain [Wed, 5 Jul 2006 13:29:57 +0000 (14:29 +0100)]
[MINIOS] Mapping page frames on demand added to the memory management.

Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[MINIOS]Mapping page frames on demand added to the memory management.
kfraser@localhost.localdomain [Wed, 5 Jul 2006 13:29:13 +0000 (14:29 +0100)]
[MINIOS]Mapping page frames on demand added to the memory management.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
18 years ago[MINIOS]Events handling cleaned up. The interface extended to provide
kfraser@localhost.localdomain [Wed, 5 Jul 2006 10:27:58 +0000 (11:27 +0100)]
[MINIOS]Events handling cleaned up. The interface extended to provide
void* pointer to handlers.
Signed-off-by: Steven Smith <sos22@cam.ac.uk>
Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>