aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/events.c
Commit message (Collapse)AuthorAgeFilesLines
* mini-os/tpmback: add tpmback_get_peercontextDaniel De Graaf2013-04-121-0/+22
| | | | | | | This allows the XSM label of the TPM's client domain to be retrieved. Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* Fix emacs local variable block to use correct C style variable.David Vrabel2013-02-211-1/+1
| | | | | | | The emacs variable to set the C style from a local variable block is c-file-style, not c-set-style. Signed-off-by: David Vrabel <david.vrabel@citrix.com
* stubdom/minios: re-structure headersKeir Fraser2009-10-011-5/+5
| | | | | | | | | 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>
* minios: switch to C99 integer typesKeir Fraser2009-07-151-1/+1
| | | | | | This is a necessary step to make minios build on NetBSD. Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
* minios: cleanup events.cKeir Fraser2009-03-021-27/+57
| | | | | | | | Don't throw away hypercall error codes. They might be useful. Also some minor coding style cleanups. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@netronome.com> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
* stubdom: use host's gccKeir Fraser2008-07-041-3/+6
| | | | | | | | 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: PIRQ and MSI/MSI-X supportKeir Fraser2008-07-021-0/+17
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: add proper shutdown facilitiesKeir Fraser2008-06-091-3/+30
| | | | Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: clear the event before calling the handler since (especiallyKeir Fraser2008-05-081-4/+4
| | | | | | | in the SMP case) the handler may make another domain send an event again, and that must not be lost. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* stubdom: fix x86_64 irq stack sizeKeir Fraser2008-03-251-5/+3
| | | | | | by making it use STACK_SIZE like other places. Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* minios: Fix lost eventsKeir Fraser2008-03-181-5/+1
| | | | | | | | | | | | | | | evtchn_bind_interdomain used to clear any already pending event before binding a handler, because else the handler may be called before it is ready. That however leads to missed events, which I had to workaround for the HVM case. This changes the semantics of bind_evtchn, and thus of all the event channel binding functions (bind_virq, evtchn_alloc_unbound, evtchn_bind_interdomain) into not unmasking the event itself, hence letting the caller initialize properly before unmasking the port (e.g. record the port number in an appropriate place). Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
* [Mini-OS] Make bind_virq return the portKeir Fraser2007-11-231-3/+3
| | | | | | | 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>
* [MINIOS] Improved unbind_all_ports().kfraser@localhost.localdomain2006-11-301-12/+15
| | | | Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
* [MINIOS] Exports a function to have all Xen ports unbound.kfraser@localhost.localdomain2006-11-271-0/+15
| | | | | | This is necessary when using mini-os as the foundation for a boot-loader. Signed-off-by: Jacob Gorm Hansen <jacobg@diku.dk>
* [MINIOS] Fix to use new event-channel API properly.kaf24@firebug.cl.cam.ac.uk2006-09-151-18/+15
| | | | Signed-off-by: Mark Williamson <mark.williamson@cl.cam.ac.uk>
* [MINI-OS] Add evtchn_bind_interdomain to mini-os, allowing clients tosos22@douglas.cl.cam.ac.uk2006-07-281-0/+20
| | | | | | | bind to interdomain event channels. Signed-off-by: John D. Ramsdell <ramsdell@mitre.org> Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [MINI-OS] Extend alloc_unbound so that the remote domain isn't always dom0.sos22@douglas.cl.cam.ac.uk2006-07-281-17/+15
| | | | | Signed-off-by: John D. Ramsdell <ramsdell@mitre.org> Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [MINI-OS] Clean up event channel types in mini-os.sos22@douglas.cl.cam.ac.uk2006-07-281-13/+10
| | | | | Signed-off-by: John D. Ramsdell <ramsdell@mitre.org> Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [MINI-OS] unbind_virq is broken and nobody uses it. Remove it.sos22@douglas.cl.cam.ac.uk2006-07-281-5/+0
| | | | Signed-off-by: Steven Smith <sos22@cam.ac.uk>
* [MINIOS]Events handling cleaned up. The interface extended to providekfraser@localhost.localdomain2006-07-051-30/+54
| | | | | | | void* pointer to handlers. Signed-off-by: Steven Smith <sos22@cam.ac.uk> Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* [MINI-OS] Fix for event initialisation in Mini-OS. All events are masked when kaf24@firebug.cl.cam.ac.uk2006-06-151-3/+9
| | | | | | | | the system is started up. This prevents from getting spurious events between hypercall to bind an event-channel and registering appropriate event handler. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Fix x86/64 version of Mini-OS. It encompasses the following:kaf24@firebug.cl.cam.ac.uk2006-05-021-1/+17
| | | | | | | | | | a) 64-bit switch_to scheduler macro (by Aravindh Puthiyaparambil) b) implements 64-bit hypervisor_callback c) fixes thread creation issues (thread_starter used to perform initialisation) Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Fix mini-os xenbus.kaf24@firebug.cl.cam.ac.uk2006-03-241-2/+2
| | | | | | | 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-2/+3
| | | | | | | | | a) in initialising new page table frames b) in initialising idle thread. Signed-off-by: Grzegorz Milos <gm281@cam.ac.uk>
* Merge in the newer Xenbus implementation from Linux to the Mini-OS. The newkaf24@firebug.cl.cam.ac.uk2005-12-081-1/+15
| | | | | | | | | | | | | | version compiles and starts up, but I'm not really sure how to test the new xenbus implementation. * Added unbind_evtchn * Copied parts of the Linux spinlock implementation to make the changes to xenbus compared to Linux smaller. Also added a dummy rwsem implementation. * Updated the xenbus-files Signed-off-by: Simon Kagstrom <simon.kagstrom@bth.se>
* The Mini-OS build once again broke, this time since vcpu_data became vcpu_infokaf24@firebug.cl.cam.ac.uk2005-12-061-0/+1
| | | | | | | | | and that XEN_VER in the __xen_guest section changed slightly. I've modified the mini-os so that it at least compiles and boots again. Signed-off-by: Simon Kagstrom <simon.kagstrom@bth.se>
* Xenbus implementation ported from Linux to Mini-os, simple thread support ↵kaf24@firebug.cl.cam.ac.uk2005-09-091-18/+20
| | | | | | | | | | | 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>
* Mini-os updates from Grzegorz Milos.kaf24@firebug.cl.cam.ac.uk2005-07-061-39/+42
|
* bitkeeper revision 1.520 (3f8d13d8qVVqxcYD--4cXYs5egqNyg)kaf24@scramble.cl.cam.ac.uk2003-10-151-1/+1
| | | | | | | | | | | | 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.483 (3f81a3e2iM-0WXaGxUS3ywM3_KZqLw)iap10@labyrinth.cl.cam.ac.uk2003-10-061-0/+106
move mini-os to extras directory