[PATCH] um: add back support for FXSAVE registers

2024-12-03 Thread Benjamin Berg
From: Benjamin Berg It was reported that qemu may not enable the XSTATE CPU extension, which is a requirement after commit 3f17fed21491 ("um: switch to regset API and depend on XSTATE"). Add a fallback to use FXSAVE (FP registers on x86_64 and XFP on i386) which is just a shorter version of the s

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

2024-12-03 Thread SeongJae Park
On Tue, 03 Dec 2024 18:07:36 +0100 Benjamin Berg wrote: > On Tue, 2024-12-03 at 07:56 -0800, SeongJae Park wrote: > > On Tue, 03 Dec 2024 07:01:09 SeongJae Park wrote: > > > > > On Tue, 03 Dec 2024 09:40:34 +0100 Benjamin Berg > > > wrote: > > > > > > > Hi, > > > > > > > > that probably mea

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

2024-12-03 Thread Benjamin Berg
On Tue, 2024-12-03 at 07:56 -0800, SeongJae Park wrote: > On Tue, 03 Dec 2024 07:01:09 SeongJae Park wrote: > > > On Tue, 03 Dec 2024 09:40:34 +0100 Benjamin Berg > > wrote: > > > > > Hi, > > > > > > that probably means the size detection for the FPU state (i.e. > > > PTRACE_GETREGSET for NT_X

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

2024-12-03 Thread SeongJae Park
On Tue, 03 Dec 2024 07:01:09 SeongJae Park wrote: > On Tue, 03 Dec 2024 09:40:34 +0100 Benjamin Berg > wrote: > > > Hi, > > > > that probably means the size detection for the FPU state (i.e. > > PTRACE_GETREGSET for NT_X86_XSTATE is incorrect on a 32bit host in some > > way. > > > > Is there

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

2024-12-03 Thread SeongJae Park
On Tue, 03 Dec 2024 09:40:34 +0100 Benjamin Berg wrote: > Hi, > > that probably means the size detection for the FPU state (i.e. > PTRACE_GETREGSET for NT_X86_XSTATE is incorrect on a 32bit host in some > way. > > Is there anything special about the qemu setup or it is just a default > qemu-x8

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

2024-12-03 Thread Benjamin Berg
Hi, that probably means the size detection for the FPU state (i.e. PTRACE_GETREGSET for NT_X86_XSTATE is incorrect on a 32bit host in some way. Is there anything special about the qemu setup or it is just a default qemu-x86? Benjamin On Mon, 2024-12-02 at 23:02 -0800, SeongJae Park wrote: > Hel