lkml.org 
[lkml]   [2019]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] x86/fpu: Remove the _GPL from the kernel_fpu_begin/end() export
On Sun, 5 May 2019, Rik van Riel wrote:

> > Using fpu code in kernel space in a kernel module is a derived work of
> > the kernel itself? dont get me wrong, but this is absurd. i mean you
> > limit the use of cpu instructions. the use of cpu instructions should
> > be free of any licensing issue. i would even argument you are
> > violating the license of the cpu ower given to the kernel by executing
> > it, by restricting its use for no reason
>
> Using FPU code in kernel space in a kernel module does not require the
> use of kernel_fpu_begin/end().
>
> The kernel module could simply disable preemption, save the FPU
> registers, use the FPU, restore the FPU registers, and reenable
> preemption.

That means the module basically reimplemented kernel_fpu_begin/end() in
its whole (not getting the further optimizations implemented by the
kernel, sure). And therefore I sort of don't see the point of "hiding" it.

Thanks,

--
Jiri Kosina
SUSE Labs

\
 
 \ /
  Last update: 2019-05-05 21:09    [W:0.237 / U:0.340 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site