[PATCH v5] um: Enable preemption in UML

Richard Weinberger richard at nod.at
Fri Sep 22 00:27:23 PDT 2023


----- Ursprüngliche Mail -----
> Von: "anton ivanov" <anton.ivanov at cambridgegreys.com>
> An: "linux-um" <linux-um at lists.infradead.org>
> CC: "Johannes Berg" <johannes at sipsolutions.net>, "richard" <richard at nod.at>, "anton ivanov"
> <anton.ivanov at cambridgegreys.com>
> Gesendet: Freitag, 22. September 2023 08:52:12
> Betreff: [PATCH v5] um: Enable preemption in UML

> From: Anton Ivanov <anton.ivanov at cambridgegreys.com>
> 
> Preemption requires saving/restoring FPU state. This patch
> adds support for it using GCC intrinsics.

Can you please state in future patches what you have changed since the last one?
 
> Signed-off-by: Anton Ivanov <anton.ivanov at cambridgegreys.com>
> diff --git a/arch/um/kernel/tlb.c b/arch/um/kernel/tlb.c
> index 7d050ab0f78a..34ec8e677fb9 100644
> --- a/arch/um/kernel/tlb.c
> +++ b/arch/um/kernel/tlb.c
> @@ -362,6 +362,9 @@ static int flush_tlb_kernel_range_common(unsigned long
> start, unsigned long end)
> 
> 	mm = &init_mm;
> 	hvc = INIT_HVC(mm, force, userspace);
> +
> +    preempt_disable();
> +

Does this address the bootup splat I've reported yesterday?


Thanks,
//richard



More information about the linux-um mailing list