[PATCH v5] 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/include/asm/fpu/api.h | 9 ++- arch/um/include/asm/processor-generic.h | 3

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 22:55, Richard Weinberger wrote: - Ursprüngliche Mail - Von: "anton ivanov" An: "richard" CC: "linux-um" , "Johannes Berg" Gesendet: Donnerstag, 21. September 2023 23:41:16 Betreff: Re: [PATCH v4] um: Enable preemption in UML On 21/09/2023 22:02, Richard Weinberger wro

Re: [PATCH v14 30/42] virtio_pci: introduce helper to get/set queue reset

2023-09-21 Thread Xuan Zhuo
On Thu, 21 Sep 2023 10:02:53 -0400, "Michael S. Tsirkin" wrote: > On Mon, Aug 01, 2022 at 02:38:50PM +0800, Xuan Zhuo wrote: > > Introduce new helpers to implement queue reset and get queue reset > > status. > > > > https://github.com/oasis-tcs/virtio-spec/issues/124 > > https://github.com/oasi

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

2023-09-21 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "anton ivanov" > An: "richard" > CC: "linux-um" , "Johannes Berg" > > Gesendet: Donnerstag, 21. September 2023 23:41:16 > Betreff: Re: [PATCH v4] um: Enable preemption in UML > On 21/09/2023 22:02, Richard Weinberger wrote: >> - Ursprüngliche Mail

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 22:02, Richard Weinberger wrote: - Ursprüngliche Mail - Von: "anton ivanov" An: "linux-um" CC: "Johannes Berg" , "richard" , "anton ivanov" Gesendet: Donnerstag, 21. September 2023 17:55:22 Betreff: [PATCH v4] um: Enable preemption in UML From: Anton Ivanov Preemption

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

2023-09-21 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "anton ivanov" > An: "linux-um" > CC: "Johannes Berg" , "richard" , > "anton ivanov" > > Gesendet: Donnerstag, 21. September 2023 17:55:22 > Betreff: [PATCH v4] um: Enable preemption in UML > From: Anton Ivanov > > Preemption requires saving/restoring FP

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

2023-09-21 Thread Peter Lafreniere
On Thu, Sep 21, 2023 at 11:55, 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 v3] um: Enable preemption in UML

2023-09-21 Thread Anton Ivanov
On 21/09/2023 16:32, anton.iva...@cambridgegreys.com wrote: 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/include/asm/fpu/api

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 16:55, anton.iva...@cambridgegreys.com wrote: 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/include/asm/fpu/api

[PATCH v4] 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/include/asm/fpu/api.h | 9 ++- arch/um/include/asm/processor-generic.h | 3

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

2023-09-21 Thread Anton Ivanov
On 21/09/2023 16:42, Peter Lafreniere wrote: On Thu, Sep 21, 2023 at 11:32, 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 v3] um: Enable preemption in UML

2023-09-21 Thread Peter Lafreniere
On Thu, Sep 21, 2023 at 11:32, 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.com

Re: [PATCH] um: Fix naming clash between UML and scheduler

2023-09-21 Thread Peter Lafreniere
On Thu, Sep 21, 2023 at 10:34, anton.iva...@cambridgegreys.com wrote: > > From: Anton Ivanov anton.iva...@cambridgegreys.com > > > __cant_sleep was already used and exported by the scheduler. > The name had to be changed to a UML specific one. > > Signed-off-by: Anton Ivanov anton.iva...@cambri

[PATCH v3] 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/include/asm/fpu/api.h | 6 +- arch/um/include/asm/processor-generic.h | 3

[PATCH] um: Fix naming clash between UML and scheduler

2023-09-21 Thread anton . ivanov
From: Anton Ivanov __cant_sleep was already used and exported by the scheduler. The name had to be changed to a UML specific one. Signed-off-by: Anton Ivanov --- arch/um/include/shared/kern_util.h | 2 +- arch/um/kernel/process.c | 2 +- arch/um/os-Linux/helper.c | 6 +++---

Re: [PATCH v14 30/42] virtio_pci: introduce helper to get/set queue reset

2023-09-21 Thread Michael S. Tsirkin
On Mon, Aug 01, 2022 at 02:38:50PM +0800, Xuan Zhuo wrote: > Introduce new helpers to implement queue reset and get queue reset > status. > > https://github.com/oasis-tcs/virtio-spec/issues/124 > https://github.com/oasis-tcs/virtio-spec/issues/139 > > Signed-off-by: Xuan Zhuo > Acked-by: Jason

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: Arches that don't support PREEMPT

2023-09-21 Thread Arnd Bergmann
On Tue, Sep 19, 2023, at 10:16, Peter Zijlstra wrote: > On Tue, Sep 19, 2023 at 03:48:09PM +0200, John Paul Adrian Glaubitz wrote: >> On Tue, 2023-09-19 at 15:42 +0200, Peter Zijlstra wrote: >> > > The agreement to kill off ia64 wasn't an invitation to kill off other >> > > stuff >> > > that peopl

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

Re: [PATCH] um: Enable preemption in UML

2023-09-21 Thread Anton Ivanov
On 21/09/2023 08:30, Richard Weinberger wrote: - Ursprüngliche Mail - Von: "anton ivanov" An: "Peter Lafreniere" CC: "Johannes Berg" , "linux-um" , "richard" Gesendet: Donnerstag, 21. September 2023 09:12:33 Betreff: Re: [PATCH] um: Enable preemption in UML On 20/09/2023 15:49, Pete

Re: [PATCH] um: Enable preemption in UML

2023-09-21 Thread Richard Weinberger
- Ursprüngliche Mail - > Von: "anton ivanov" > An: "Peter Lafreniere" > CC: "Johannes Berg" , "linux-um" > , "richard" > Gesendet: Donnerstag, 21. September 2023 09:12:33 > Betreff: Re: [PATCH] um: Enable preemption in UML > On 20/09/2023 15:49, Peter Lafreniere wrote: >> On Wed, Sep 2

Re: [PATCH] um: Enable preemption in UML

2023-09-21 Thread Anton Ivanov
On 20/09/2023 15:49, Peter Lafreniere wrote: On Wed, Sep 20, 2023 at 08:31, 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 Iva