Re: [PATCH v7] um: Enable preemption in UML

2024-03-28 Thread Anton Ivanov
On 28/03/2024 09:27, Johannes Berg wrote: @@ -23,7 +23,7 @@ struct thread_info { int preempt_count; /* 0 => preemptable, <0 => BUG */ struct thread_info *real_thread;/* Points to non-IRQ stack */

Re: [PATCH v7] um: Enable preemption in UML

2024-03-28 Thread Johannes Berg
> @@ -23,7 +23,7 @@ struct thread_info { > int preempt_count; /* 0 => preemptable, > <0 => BUG */ > struct thread_info *real_thread;/* Points to non-IRQ stack */ > - unsigned long aux_fp_regs[FP_SIZE];

Re: [PATCH v7] um: Enable preemption in UML

2023-09-28 Thread Anton Ivanov
On 28/09/2023 10:10, anton.iva...@cambridgegreys.com wrote: From: Anton Ivanov 1. Preemption requires saving/restoring FPU state. This patch adds support for it using GCC intrinsics as well as appropriate storage space in the thread structure. We reuse the space which is already allocated fo

[PATCH v7] um: Enable preemption in UML

2023-09-28 Thread anton . ivanov
From: Anton Ivanov 1. Preemption requires saving/restoring FPU state. This patch adds support for it using GCC intrinsics as well as appropriate storage space in the thread structure. We reuse the space which is already allocated for the userspace threads in the thread_info structure. 2. irq cri