lkml.org 
[lkml]   [2013]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add a text_poke syscall
On 11/20/2013 09:25 AM, Andi Kleen wrote:
> "H. Peter Anvin" <hpa@zytor.com> writes:
>>
>> We're talking user space here, which has different requirement (COW,
>> memory protection, ...) which means it is not really the same code. You
>> can't take a page fault while patching the kernel.
>
> The syscall pins the page, then it calls the kernel code.
> There are no page faults during patching.
>

But you don't need to pin anything if you just do it in userspace.
Again, it is particularly poignant for large batched operations.

-hpa



\
 
 \ /
  Last update: 2013-11-21 04:21    [W:0.071 / U:1.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site