minix/include/minix
Cristiano Giuffrida cb176df60f New RS and new signal handling for system processes.
UPDATING INFO:
20100317:
        /usr/src/etc/system.conf updated to ignore default kernel calls: copy
        it (or merge it) to /etc/system.conf.
        The hello driver (/dev/hello) added to the distribution:
        # cd /usr/src/commands/scripts && make clean install
        # cd /dev && MAKEDEV hello

KERNEL CHANGES:
- Generic signal handling support. The kernel no longer assumes PM as a signal
manager for every process. The signal manager of a given process can now be
specified in its privilege slot. When a signal has to be delivered, the kernel
performs the lookup and forwards the signal to the appropriate signal manager.
PM is the default signal manager for user processes, RS is the default signal
manager for system processes. To enable ptrace()ing for system processes, it
is sufficient to change the default signal manager to PM. This will temporarily
disable crash recovery, though.
- sys_exit() is now split into sys_exit() (i.e. exit() for system processes,
which generates a self-termination signal), and sys_clear() (i.e. used by PM
to ask the kernel to clear a process slot when a process exits).
- Added a new kernel call (i.e. sys_update()) to swap two process slots and
implement live update.

PM CHANGES:
- Posix signal handling is no longer allowed for system processes. System
signals are split into two fixed categories: termination and non-termination
signals. When a non-termination signaled is processed, PM transforms the signal
into an IPC message and delivers the message to the system process. When a
termination signal is processed, PM terminates the process.
- PM no longer assumes itself as the signal manager for system processes. It now
makes sure that every system signal goes through the kernel before being
actually processes. The kernel will then dispatch the signal to the appropriate
signal manager which may or may not be PM.

SYSLIB CHANGES:
- Simplified SEF init and LU callbacks.
- Added additional predefined SEF callbacks to debug crash recovery and
live update.
- Fixed a temporary ack in the SEF init protocol. SEF init reply is now
completely synchronous.
- Added SEF signal event type to provide a uniform interface for system
processes to deal with signals. A sef_cb_signal_handler() callback is
available for system processes to handle every received signal. A
sef_cb_signal_manager() callback is used by signal managers to process
system signals on behalf of the kernel.
- Fixed a few bugs with memory mapping and DS.

VM CHANGES:
- Page faults and memory requests coming from the kernel are now implemented
using signals.
- Added a new VM call to swap two process slots and implement live update.
- The call is used by RS at update time and in turn invokes the kernel call
sys_update().

RS CHANGES:
- RS has been reworked with a better functional decomposition.
- Better kernel call masks. com.h now defines the set of very basic kernel calls
every system service is allowed to use. This makes system.conf simpler and
easier to maintain. In addition, this guarantees a higher level of isolation
for system libraries that use one or more kernel calls internally (e.g. printf).
- RS is the default signal manager for system processes. By default, RS
intercepts every signal delivered to every system process. This makes crash
recovery possible before bringing PM and friends in the loop.
- RS now supports fast rollback when something goes wrong while initializing
the new version during a live update.
- Live update is now implemented by keeping the two versions side-by-side and
swapping the process slots when the old version is ready to update.
- Crash recovery is now implemented by keeping the two versions side-by-side
and cleaning up the old version only when the recovery process is complete.

DS CHANGES:
- Fixed a bug when the process doing ds_publish() or ds_delete() is not known
by DS.
- Fixed the completely broken support for strings. String publishing is now
implemented in the system library and simply wraps publishing of memory ranges.
Ideally, we should adopt a similar approach for other data types as well.
- Test suite fixed.

DRIVER CHANGES:
- The hello driver has been added to the Minix distribution to demonstrate basic
live update and crash recovery functionalities.
- Other drivers have been adapted to conform the new SEF interface.
2010-03-17 01:15:29 +00:00
..
a.out.h a.out.h typo (Bug#398, reported by 7shi) 2010-02-07 12:01:37 +00:00
bitmap.h . introduced DEV_READ_S, DEV_WRITE_S, DEV_SCATTER_S, DEV_GATHER_S 2006-06-20 08:38:15 +00:00
callnr.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
cdrom.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
com.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
config.h Bump version number to 3.1.7 2010-02-17 12:51:26 +00:00
const.h Add an UNUSED annotation, and use it in libsys. 2010-03-11 14:23:33 +00:00
cpufeature.h _cpuid() - full cpuid instruction wrapper 2010-01-15 15:23:57 +00:00
crtso.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
debug.h - VM_KERN_NOPAGEZERO feature is gone 2009-09-21 14:23:10 +00:00
devio.h panic() cleanup. 2010-03-05 15:05:11 +00:00
dir.h Changes to the include files in order to make cross-compilation possible. 2009-11-06 08:46:22 +00:00
dirent.h Changes to the include files in order to make cross-compilation possible. 2009-11-06 08:46:22 +00:00
dl_eth.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
dmap.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
ds.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
endpoint.h Mostly a revert of r5306. com.h defines MAX_NR_TASKS value which replaces 2009-09-29 20:13:41 +00:00
fslib.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ioctl.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
ipc.h Removal of the system task 2010-02-09 15:20:09 +00:00
keymap.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
minlib.h _cpuid() - full cpuid instruction wrapper 2010-01-15 15:23:57 +00:00
mq.h use servers/inet/mq.[ch] to queue messages using mq_queue() in 2007-01-12 13:33:12 +00:00
partition.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
paths.h Drivers and servers are simply known as services. 2009-12-17 01:53:26 +00:00
portio.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
profile.h Changes to the include files in order to make cross-compilation possible. 2009-11-06 08:46:22 +00:00
queryparam.h Added paramvalue to the library. 2005-11-08 13:59:27 +00:00
rs.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
safecopies.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
sef.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
sound.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
sys_config.h Throw out obsolete Atari, Macintosh and Sun code to un-break packages; 2010-02-16 19:19:42 +00:00
sysinfo.h Add 'getidle' CPU utilization measurement infrastructure 2009-12-02 11:52:26 +00:00
syslib.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
sysutil.h panic() cleanup. 2010-03-05 15:05:11 +00:00
tty.h Changes to the include files in order to make cross-compilation possible. 2009-11-06 08:46:22 +00:00
type.h Include directory reorg and makefile updates. 2010-03-08 11:04:59 +00:00
types.h Explicitly mark i8_t as signed 2010-01-25 18:17:04 +00:00
u64.h Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
vfsif.h - Fix dangling symlink regression 2010-01-21 09:32:15 +00:00
vm.h New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00