Re: [PATCH] add xfloat thread state interface

2024-08-17 Thread Luca Dariz
Hi, Il 05/08/24 20:28, Sergey Bugaev ha scritto: On Mon, Aug 5, 2024 at 9:23 PM Samuel Thibault wrote: Luca Dariz, le lun. 05 août 2024 14:52:24 +0200, a ecrit: Il 05/08/24 00:32, Samuel Thibault ha scritto: Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit: +#define XFP_STATE_BYTES

Re: [PATCH] add xfloat thread state interface

2024-08-05 Thread Sergey Bugaev
On Mon, Aug 5, 2024 at 9:23 PM Samuel Thibault wrote: > Luca Dariz, le lun. 05 août 2024 14:52:24 +0200, a ecrit: > > Il 05/08/24 00:32, Samuel Thibault ha scritto: > > > Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit: > > > > +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save)) > >

Re: [PATCH] add xfloat thread state interface

2024-08-05 Thread Samuel Thibault
Hello, Luca Dariz, le lun. 05 août 2024 14:52:24 +0200, a ecrit: > Il 05/08/24 00:32, Samuel Thibault ha scritto: > > Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit: > > > +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save)) > > > > That is not sufficient: depending on the sse level

Re: [PATCH] add xfloat thread state interface

2024-08-05 Thread Luca Dariz
Il 05/08/24 00:32, Samuel Thibault ha scritto: Hello, Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit: +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save)) That is not sufficient: depending on the sse level and the saving style, we have various amount of data to store. See fp_xsa

Re: [PATCH] add xfloat thread state interface

2024-08-04 Thread Samuel Thibault
Hello, Luca Dariz, le ven. 02 août 2024 17:32:34 +0200, a ecrit: > +#define XFP_STATE_BYTES (sizeof (struct i386_xfp_save)) That is not sufficient: depending on the sse level and the saving style, we have various amount of data to store. See fp_xsave_size computed in init_fpu, we have to save all

[PATCH] add xfloat thread state interface

2024-08-02 Thread Luca Dariz
* i386/i386/fpu.c: extend current getter and setter to support the extended state; move the struct casting here to reuse the locking and allocation logic for the thread state. * i386/i386/fpu.h: update prototypes to accept generic thread state * i386/i386/pcb.c: forward raw thread state to gett