lkml.org 
[lkml]   [2014]   [Feb]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH v5 2/3] x86, mpx: hook #BR exception handler to allocate bound tables
Date

> -----Original Message-----
> From: H. Peter Anvin [mailto:hpa@zytor.com]
> Sent: Tuesday, February 25, 2014 1:52 AM
> To: Hansen, Dave; Ren, Qiaowei; Thomas Gleixner; Ingo Molnar
> Cc: x86@kernel.org; linux-kernel@vger.kernel.org
> Subject: Re: [PATCH v5 2/3] x86, mpx: hook #BR exception handler to allocate
> bound tables
>
> On 02/24/2014 09:27 AM, Dave Hansen wrote:
> >
> > Can you talk a little bit about what the design is here? Why does the
> > kernel have to do the allocation of the virtual address space? Does
> > it really need to MAP_POPULATE? bt_size looks like 4MB, and that's an
> > awful lot of memory to eat up at once. Shouldn't we just let the
> > kernel demand-fault this like everything else?
> >
>
> MAP_POPULATE definitely seems like the wrong thing.
>
Oh. This option should be removed.

Thanks,
Qiaowei


\
 
 \ /
  Last update: 2014-02-25 15:21    [W:0.033 / U:62.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site