[Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Jan Kiszka
If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state so far saved on entry. This caused subtle pipeline state corruptions. Instead, only save and restore them if we were entering over

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Wolfgang Mauerer
Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state so far saved on entry. This caused subtle pipeline state corruptions. Instead, only save and restore them if we

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Jan Kiszka
Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state so far saved on entry. This caused subtle pipeline state corruptions. Instead, only

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Wolfgang Mauerer
Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state so far saved on entry. This caused subtle pipeline state

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Jan Kiszka
Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state so far saved on entry. This caused subtle

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Wolfgang Mauerer
Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state so far saved on entry.

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Jan Kiszka
Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the root domain state

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Wolfgang Mauerer
Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over root, we must not restore the

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Jan Kiszka
Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the event handler over

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Wolfgang Mauerer
Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it due to migration in the

Re: [Xenomai-core] [PATCH v2] x86: Fix root domain state restoring on exception return

2010-01-26 Thread Gilles Chanteperdrix
Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: Wolfgang Mauerer wrote: Jan Kiszka wrote: If we enter __ipipe_handle_exception over a non-root domain and leave it