Re: UML not coming up on "INTEL(R) XEON(R) GOLD 6542Y"

2024-10-04 Thread Benjamin Berg
Hi, On Tue, 2024-09-17 at 10:08 +0200, Benjamin Berg wrote: > if it is really only on that CPU, then maybe it is related to AMX > support? Though, not sure how exactly that might be affecting > PTRACE_{S,G}ETFPREGS on x86_64. Just, FYI, it really cannot work if the host kernel has AMX enabled. Th

[PATCH] um: remove auxiliary FP registers

2024-10-04 Thread Benjamin Berg
From: Benjamin Berg We do not need the extra save/restore of the FP registers when getting the fault information. This was originally added in commit 2f56debd77a8 ("uml: fix FP register corruption") but at that time the code was not saving/restoring the FP registers when switching to userspace. T

[RFC PATCH] um: switch to regset API and depend on XSTATE

2024-10-04 Thread Benjamin Berg
From: Benjamin Berg The PTRACE_GETREGSET API has now existed since Linux 2.6.33. The XSAVE CPU feature should also be sufficiently common to be able to rely on it. With this, define our internal FP state to be the hosts XSAVE data. Add discovery for the hosts XSAVE register size and place the FP