login
Header Space

 
 

Re: [PATCH x86/mm] x86: i387 fpregs_set convert_to_fxsr

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Siddha, Suresh B <suresh.b.siddha@...>
Cc: <mingo@...>, <tglx@...>, <linux-kernel@...>
Date: Friday, January 25, 2008 - 4:38 pm

> On Thu, Jan 24, 2008 at 05:59:33PM -0800, Roland McGrath wrote:

It's true that there was before no way to touch only part of the FPU state
via ptrace.  The user_regset interface genericizes access to every regset
to permit partial access, subject to the size and align fields.  Access to
some part of the data is certainly of use for some regsets, like the
general registers and TLS, which always have exposed means to touch just
one chunk (e.g. PTRACE_POKEUSR, PTRACE_SET_THREAD_AREA).  It's a very
worthwhile thing that we have a uniform interface for all the regsets,
so I certainly would not change that.  

It could fit into the user_regset interface as now defined, to set .n = 1,
.size = whole for the FPU regset, so that all partial access is officially
invalid.  But it is easy enough to support partial access in fact, and for
the common case (xfpregs) there is no overhead or complexity to it at all.
Some new user of the user_regset interfaces very well might have a use for
fetching or touching just one FP register, so why rule it out a priori?


Thanks,
Roland
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] x86, i387: use convert_to_fxsr() in fpregs_set(), Siddha, Suresh B, (Thu Jan 24, 9:40 pm)
[PATCH x86/mm] x86: i387 fpregs_set convert_to_fxsr, Roland McGrath, (Thu Jan 24, 9:59 pm)
Re: [PATCH x86/mm] x86: i387 fpregs_set convert_to_fxsr, Siddha, Suresh B, (Fri Jan 25, 2:04 pm)
Re: [PATCH x86/mm] x86: i387 fpregs_set convert_to_fxsr, Roland McGrath, (Fri Jan 25, 4:38 pm)
speck-geostationary