[PATCH hurd 01/28] libshouldbeinlibc: move the reference counting primitives here

2014-12-01 Thread Justus Winter
Declare all functions `extern inline' instead of `static inline'. This allows us to use them in functions declared as `extern inline'. * libshouldbeinlibc/refcount.h: Move here, and declare all functions `extern inline'. * libshouldbeinlibc/refcount.c: And define the functions here. *

Re: [PATCH hurd 01/28] libshouldbeinlibc: move the reference counting primitives here

2014-12-01 Thread Samuel Thibault
Justus Winter, le Mon 01 Dec 2014 16:00:25 +0100, a écrit : Declare all functions `extern inline' instead of `static inline'. This allows us to use them in functions declared as `extern inline'. * libshouldbeinlibc/refcount.h: Move here, and declare all functions `extern inline'. *

[PATCH gnumach] kern: disable all counters by default

2014-12-01 Thread Justus Winter
Make all five non-conditional counters conditional ones. Casual checking revealed that the hits-to-miss ratio is excellent. * kern/counters.c: Make all counters conditional. * kern/counters.h: Likewise. * kern/ipc_sched.c: Likewise. * kern/sched_prim.c: Likewise. --- kern/counters.c | 3 +--

Re: [PATCH gnumach] kern: disable all counters by default

2014-12-01 Thread Samuel Thibault
Justus Winter, le Mon 01 Dec 2014 18:51:53 +0100, a écrit : Make all five non-conditional counters conditional ones. Casual checking revealed that the hits-to-miss ratio is excellent. Ack. * kern/counters.c: Make all counters conditional. * kern/counters.h: Likewise. * kern/ipc_sched.c:

[PATCH mig] Add static branch prediction to type checks

2014-12-01 Thread Justus Winter
Annotate generated type checks with static branch prediction optimizing well-formed messages. * utils.c (WriteBogusDefines): Define `mig_unlikely' if not defined. * server.c: Use `mig_unlikely' in generated type checks. * user.c: Likewise. --- server.c | 21 - user.c | 27

Re: [PATCH mig] Add static branch prediction to type checks

2014-12-01 Thread Samuel Thibault
Justus Winter, le Mon 01 Dec 2014 19:06:10 +0100, a écrit : Annotate generated type checks with static branch prediction optimizing well-formed messages. Ack. * utils.c (WriteBogusDefines): Define `mig_unlikely' if not defined. * server.c: Use `mig_unlikely' in generated type checks. *

grub reinstall / grub keeps rebooting

2014-12-01 Thread Riccardo Mottola
Hi, I installed everything on a host machine (same architecture as my target box, just more ram and more Mhz). I end up with something bootable! However if I put the disk in my original box, it just keeps rebooting, I don't even get the grub screen. Thus I suppose it is grub that forces this

Re: [PATCH hurd 04/30] libports: add `ports_lookup_payload' and `ports_payload_get_name'

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:44 +0100, a écrit : These two functions map payloads to objects and port names. The former can be used like `ports_lookup_port' to look up objects, the latter to map payloads to port names if the server function expects a `mach_port_t'. *

Re: [PATCH hurd 05/30] libports: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:45 +0100, a écrit : * libports/mig-decls.h (begin_using_port_info_payload): New function. * libports/mig-mutate.h: Add mutator. Ack. --- libports/mig-decls.h | 6 ++ libports/mig-mutate.h | 4 2 files changed, 10 insertions(+) diff

Re: [PATCH hurd 06/30] libdiskfs: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:46 +0100, a écrit : * libdiskfs/diskfs.h (diskfs_begin_using_protid_payload): New function. (diskfs_begin_using_control_payload): Likewise. (diskfs_begin_using_bootinfo_payload): Likewise. * libdiskfs/fsmutations.h: Add mutators. Ack. ---

Re: [PATCH hurd 07/30] libnetfs: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:47 +0100, a écrit : * libnetfs/priv.h (begin_using_protid_payload): New function. * libnetfs/mutations.h: Add mutator. Ack. --- libnetfs/mutations.h | 3 +++ libnetfs/priv.h | 6 ++ 2 files changed, 9 insertions(+) diff --git

Re: [PATCH hurd 08/30] libtrivfs: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:48 +0100, a écrit : * libtrivfs/mig-decls.h (trivfs_begin_using_protid_payload): New function. (trivfs_begin_using_control_payload): Likewise. * libtrivfs/mig-mutate.h: Add mutators. Ack. --- libtrivfs/mig-decls.h | 58

Re: [PATCH hurd 09/30] libpager: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:49 +0100, a écrit : * libpager/mig-decls.h (begin_using_pager_payload): New function. * libpager/mig-mutate.h: Add mutators. Ack. --- libpager/mig-decls.h | 6 ++ libpager/mig-mutate.h | 3 +++ 2 files changed, 9 insertions(+) diff --git

Re: [PATCH hurd 10/30] libcons: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:50 +0100, a écrit : * libcons/mutations.h: Add mutator. * libcons/priv.h (begin_using_notify_payload): New function. Ack. --- libcons/mutations.h | 1 + libcons/priv.h | 6 ++ 2 files changed, 7 insertions(+) diff --git

Re: [PATCH hurd 11/30] auth: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:51 +0100, a écrit : * auth/mig-mutate.h: Add mutator. * auth/mig-decls.h (auth_payload_to_handle): New function. Ack. --- auth/mig-decls.h | 6 ++ auth/mig-mutate.h | 1 + 2 files changed, 7 insertions(+) diff --git a/auth/mig-decls.h

Re: [PATCH hurd 12/30] console: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:52 +0100, a écrit : * console/priv.h (begin_using_protid_payload): New function. * console/mutations.h: Add mutators. Ack. --- console/mutations.h | 3 +++ libnetfs/priv.h | 6 ++ 2 files changed, 9 insertions(+) diff --git

Re: [PATCH hurd 15/30] pfinet: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:55 +0100, a écrit : * pfinet/mig-mutate.h: Add mutators. * pfinet/mig-decls.h (begin_using_socket_payload): New function. (begin_using_sockaddr_payload): Likewise. Ack. --- pfinet/mig-decls.h | 12 pfinet/mig-mutate.h | 4 2

Re: [PATCH hurd 14/30] exec: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:54 +0100, a écrit : * exec/execmutations.h: Add mutators. * exec/mig-decls.h (begin_using_bootinfo_payload): New function. Ack. --- exec/execmutations.h | 3 +++ exec/mig-decls.h | 6 ++ 2 files changed, 9 insertions(+) diff --git

Re: [PATCH hurd 13/30] console-client: make the demuxer payload-aware

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:53 +0100, a écrit : * console-client/trans.c (console_demuxer): make the demuxer payload-aware. Ack. --- console-client/trans.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/console-client/trans.c

Re: [PATCH hurd 16/30] pfinet: make the demuxers payload-aware

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:56 +0100, a écrit : * pfinet/ethernet.c (ethernet_demuxer): Make the demuxer payload-aware. * pfinet/main.c (pfinet_demuxer): Likewise. Ack. --- pfinet/ethernet.c | 20 +++- pfinet/main.c | 12 ++-- 2 files changed, 29

Re: [PATCH hurd 17/30] pflocal: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:57 +0100, a écrit : * pflocal/mig-mutate.h: Add mutators. * pflocal/mig-decls.c (begin_using_sock_user_payload): New function. (begin_using_addr_payload): Likewise. Ack. --- pflocal/mig-decls.h | 12 pflocal/mig-mutate.h | 3 +++ 2

Re: [PATCH hurd 18/30] proc: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:58 +0100, a écrit : * proc/mig-decls.h (begin_using_proc_payload): New function. (begin_using_exc_payload): Likewise. * proc/mig-mutate.h: Add mutators. * proc/proc_exc.defs (exception_t): Add payload-aware in-translator function. Ack. ---

Re: [PATCH hurd 20/30] term: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:00 +0100, a écrit : * term/mig-mutate.h: Add mutator. Ack. --- term/Makefile | 1 + term/mig-decls.h | 6 ++ term/mig-mutate.h | 3 +++ 3 files changed, 10 insertions(+) diff --git a/term/Makefile b/term/Makefile index 5006c0d..1419d2a

Re: [PATCH hurd 23/30] trans/password: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:03 +0100, a écrit : * trans/Makefile (password-MIGSFLAGS): Add mutator. Ack. --- trans/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/trans/Makefile b/trans/Makefile index eecaeeb..04fd276 100644 --- a/trans/Makefile +++

Re: [PATCH hurd 19/30] startup: disable default payload to port mapping

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:18:59 +0100, a écrit : startup does not use libports. Therefor, it is not necessary to use the default payload to port translation function. * startup/Makefile (MIGSFLAGS): Disable the default payload to port translation function. Ack. ---

Re: [PATCH hurd 22/30] trans/ifsock: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:02 +0100, a écrit : * trans/Makefile (ifsock-MIGSFLAGS): Add mutator. Ack. --- trans/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/trans/Makefile b/trans/Makefile index 71e6424..eecaeeb 100644 --- a/trans/Makefile +++

Re: [PATCH hurd 24/30] trans/streamio: make the translator payload-aware

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:04 +0100, a écrit : * trans/Makefile (device_reply-MIGSFLAGS): Define MACH_PAYLOAD_TO_PORT. Ack. --- trans/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/trans/Makefile b/trans/Makefile index 04fd276..b6edb97 100644 ---

Re: [PATCH hurd 25/30] trans/symlink: disable default payload to port mapping

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:05 +0100, a écrit : `fsysServer' is only used by the symlink translator which does not use libports. Therefor, it is not necessary to use the default payload to port translation function. * trans/Makefile (fsys-MIGSFLAGS): Disable the default payload

Re: [PATCH hurd 26/30] utils/rpctrace: make `trace_and_forward' payload-aware

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:06 +0100, a écrit : As the protected payloads were retrofitted into the Mach message format, the local port type is lost. * utils/rpctrace.c (is_notification): New function (trace_and_forward): Recover the original local port type. Ack. ---

Re: [PATCH hurd 27/30] hurd: add intranpayload functions to all hurd types

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:07 +0100, a écrit : For each hurd type defined in hurd_types.h, add a intranpayload function. If an X_INTRAN mutation is defined for a type, a corresponding X_INTRAN_PAYLOAD has to be defined. If no X_INTRAN mutation is defined, use

Re: [PATCH hurd 28/30] libports: use protected payloads to optimize the object lookup

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:19:08 +0100, a écrit : + /* We are the only one updating generation, so this is safe. */ + old = generation; + + /* Update generation. */ + __atomic_store_n (generation, (old + 1) % 3, __ATOMIC_RELAXED); + + /* This is the

Re: [PATCH hurd-dde 1/4] devnode: add a payload-aware intrans function

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:20:08 +0100, a écrit : * devnode/mig-mutate.h: Add mutator. * devnode/Makefile (device-MIGSFLAGS): Define MACH_PAYLOAD_TO_PORT. Ack. --- devnode/Makefile | 1 + devnode/mig-mutate.h | 2 ++ 2 files changed, 3 insertions(+) diff --git

Re: [PATCH hurd-dde 2/4] eth-filter: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:20:09 +0100, a écrit : * eth-filter/mig-mutate.h: Add mutators. * eth-filter/mig-decls.h (begin_using_device_payload): New function. Ack. --- eth-filter/mig-decls.h | 6 ++ eth-filter/mig-mutate.h | 4 2 files changed, 10 insertions(+)

Re: [PATCH hurd-dde 4/4] libmachdev: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:20:11 +0100, a écrit : * libmachdev/mig-mutate.h: Add mutators. * libmachdev/mig-decls.h (begin_using_device_payload): New function. * libmachdev/Makefile (device-MIGSFLAGS): Define MACH_PAYLOAD_TO_PORT. Ack. --- libmachdev/Makefile | 1 +

Re: [PATCH hurd-dde 3/4] eth-multiplexer: add payload-aware intrans functions

2014-12-01 Thread Samuel Thibault
Justus Winter, le Thu 27 Nov 2014 14:20:10 +0100, a écrit : * eth-multiplexer/mig-mutate.h: Add mutators. * eth-multiplexer/mig-decls.h (begin_using_device_payload): New function. * eth-multiplexer/Makefile (device-MIGSFLAGS): Define MACH_PAYLOAD_TO_PORT. Ack. --- eth-multiplexer/Makefile