minix/test
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
..
ds New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
ipc IPC test set fixes: 2010-01-26 08:05:33 +00:00
safecopy New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
safemap New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
safeperf New RS and new signal handling for system processes. 2010-03-17 01:15:29 +00:00
select Removal of the executable flag from files that cannot be executed 2009-11-09 10:26:00 +00:00
common.c Initial revision 2005-04-21 14:53:53 +00:00
Makefile - Add support for the ucontext system calls (getcontext, setcontext, 2010-03-12 15:58:41 +00:00
run - Add support for the ucontext system calls (getcontext, setcontext, 2010-03-12 15:58:41 +00:00
t10a.c Initial revision 2005-04-21 14:53:53 +00:00
t11a.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
t11b.c Initial revision 2005-04-21 14:53:53 +00:00
t40a.c Added select test 2009-07-14 09:43:33 +00:00
t40b.c - Introduce support for sticky bit. 2009-12-20 20:27:14 +00:00
t40c.c Have test40 use /dev/ptypf instead of /dev/ptyp0 2010-01-25 18:14:05 +00:00
t40d.c Added select test 2009-07-14 09:43:33 +00:00
t40e.c Added select test 2009-07-14 09:43:33 +00:00
t40f.c Added select test 2009-07-14 09:43:33 +00:00
test1.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test2.c - Introduce support for sticky bit. 2009-12-20 20:27:14 +00:00
test3.c Fixed tests to use the right path when run as root 2009-12-04 17:51:06 +00:00
test4.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test5.c Man-pages on mkdep, cdprobe, loadramdisk and newroot; thanks to Antoine Leca 2010-02-02 15:10:00 +00:00
test6.c Fixed tests to use the right path when run as root 2009-12-04 17:51:06 +00:00
test7.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test8.c Swap test8 and test37 2005-09-19 13:39:27 +00:00
test9.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test10.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test11.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test12.c Initial revision 2005-04-21 14:53:53 +00:00
test13.c Initial revision 2005-04-21 14:53:53 +00:00
test14.c fix test14's "clever" (broken) filename generation 2009-08-15 15:13:57 +00:00
test15.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test16.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test17.c Fixed tests to use the right path when run as root 2009-12-04 17:51:06 +00:00
test18.c Implementations of readv and writev 2010-01-08 13:40:34 +00:00
test19.c Fixed tests to use the right path when run as root 2009-12-04 17:51:06 +00:00
test20.c 8<->37 2005-09-19 13:44:31 +00:00
test21.c Fixed tests to use the right path when run as root 2009-12-04 17:51:06 +00:00
test22.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test23.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test24.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test25.c - Fix dangling symlink regression 2010-01-21 09:32:15 +00:00
test26.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test27.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test28.c Disabled check in test 28 which hard links a directory; this is nott required by POSIX and not supported (currently) by MINIX. Also corrected total number of tests. 2009-09-04 20:23:25 +00:00
test29.c 8<->37 2005-09-19 13:44:31 +00:00
test30.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test31.c test31 fix 2009-09-20 18:15:24 +00:00
test32.c test32 fix 2009-09-20 16:47:57 +00:00
test33.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test34.c Initial revision 2005-04-21 14:53:53 +00:00
test35.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test36.c Al's no-double-empty-lines crusade 2005-08-22 15:08:27 +00:00
test37.c Add tests for sigsetjmp/siglongjmp 2010-01-12 09:53:39 +00:00
test38.c Fixed problem in subtest 1; Part of test is now in #if DEAD_CODE ... #endif, 2005-10-05 11:28:12 +00:00
test39.c Mostly a revert of r5306. com.h defines MAX_NR_TASKS value which replaces 2009-09-29 20:13:41 +00:00
test40.c Fixed case error 2009-07-22 08:59:57 +00:00
test41.c Support for setitimer(ITIMER_VIRTUAL/ITIMER_PROF). New test (41) for setitimer. 2009-08-15 21:37:26 +00:00
test42.c add ptrace(2) TO_NOEXEC flag 2010-01-05 09:30:28 +00:00
test43.c Add dirname function 2010-01-25 18:12:28 +00:00
test44.c Add Ben's test 44 2009-12-09 13:42:33 +00:00
test45.c Implementation of strto(u)ll, documentation and tests for strto(u)l(l) 2009-12-09 19:01:38 +00:00
test45.h Implementation of strto(u)ll, documentation and tests for strto(u)l(l) 2009-12-09 19:01:38 +00:00
test46.c Fix compilation errors caused by more files not added in previous commit 2009-12-20 21:31:03 +00:00
test47.c Floating point support functions 2009-12-24 20:22:41 +00:00
test48.c - Fix dangling symlink regression 2010-01-21 09:32:15 +00:00
test49.c Additions to inttypes.h format strings 2010-01-25 18:16:25 +00:00
test50.c Fixes for truncate system calls: 2010-02-09 08:12:37 +00:00
test51.c - Add support for the ucontext system calls (getcontext, setcontext, 2010-03-12 15:58:41 +00:00
testsh1.sh . swapped test26 and test40 2005-08-08 14:30:50 +00:00
testsh2.sh . swapped test26 and test40 2005-08-08 14:30:50 +00:00