Re: [PATCH v5 2/3] x86, mpx: hook #BR exception handler to allocate bound tables

From: H. Peter Anvin
Date: Mon Feb 24 2014 - 12:51:53 EST


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.

-hpa

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/