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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 14:46, Peter Lafreniere wrote: On Thu, Sep 21, 2023 at 05:28, anton.iva...@cambridgegreys.com wrote: From: Anton Ivanov anton.iva...@cambridgegreys.com Preemption requires saving/restoring FPU state. This patch adds support for it using GCC intrinsics. Signed-off-by: Anton Iv

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 14:46, Peter Lafreniere wrote: On Thu, Sep 21, 2023 at 05:28, anton.iva...@cambridgegreys.com wrote: From: Anton Ivanov anton.iva...@cambridgegreys.com Preemption requires saving/restoring FPU state. This patch adds support for it using GCC intrinsics. Signed-off-by: Anton Ivan

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

2023-09-21 Thread Peter Lafreniere
On Thu, Sep 21, 2023 at 05:28, anton.iva...@cambridgegreys.com wrote: > > From: Anton Ivanov anton.iva...@cambridgegreys.com > > > Preemption requires saving/restoring FPU state. This patch > adds support for it using GCC intrinsics. > > Signed-off-by: Anton Ivanov anton.iva...@cambridgegreys.c

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 10:42, Anton Ivanov wrote: On 21/09/2023 10:35, Johannes Berg wrote: Hi, Haven't chimed in here before, but thanks for looking at this! I actually really wanted at least the things you get for debug from this in the past, so much appreciated. I think I actually tried a simple

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 10:35, Johannes Berg wrote: Hi, Haven't chimed in here before, but thanks for looking at this! I actually really wanted at least the things you get for debug from this in the past, so much appreciated. I think I actually tried a simpler approach and it kind of even worked, but

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

2023-09-21 Thread Johannes Berg
Hi, Haven't chimed in here before, but thanks for looking at this! I actually really wanted at least the things you get for debug from this in the past, so much appreciated. I think I actually tried a simpler approach and it kind of even worked, but my userspace likely has very little FPU usage.

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 10:28, anton.iva...@cambridgegreys.com wrote: From: Anton Ivanov Preemption requires saving/restoring FPU state. This patch adds support for it using GCC intrinsics. Marginally slower than before 3m 03s for find /usr -type f -exec cat {} > /dev/null \; Still, better than th

[PATCH v2] um: Enable preemption in UML

2023-09-21 Thread anton . ivanov
From: Anton Ivanov Preemption requires saving/restoring FPU state. This patch adds support for it using GCC intrinsics. Signed-off-by: Anton Ivanov --- arch/um/Kconfig | 1 - arch/um/Makefile| 3 +- arch/um/include/asm/fpu/api.h | 4