[PATCH v2 03/10] um: vdso: Implement __vdso_getcpu() via syscall

Johannes Berg johannes at sipsolutions.net
Wed Sep 10 04:59:02 PDT 2025


On Sun, 2025-08-10 at 13:51 +0800, Tiwei Bie wrote:
> From: Tiwei Bie <tiwei.btw at antgroup.com>
> 
> We are going to support SMP in UML, so we can not hard code
> the CPU and NUMA node in __vdso_getcpu() anymore.

Correct. But does that mean we actually have to implement it via syscall
in the VDSO? That seems a bit odd? ARM doesn't seem to have getcpu in
the VDSO at all, for example, so could we do the same and just remove
it?

johannes



More information about the linux-um mailing list