[lkml]   [2019]   [Nov]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch V3 12/20] x86/ioperm: Move TSS bitmap update to exit to user work
On Wed, Nov 13, 2019 at 1:02 PM Thomas Gleixner <> wrote:
> From: Thomas Gleixner <>
> There is no point to update the TSS bitmap for tasks which use I/O bitmaps
> on every context switch. It's enough to update it right before exiting to
> user space.


I wonder if it might make sense to delay it even more: just always
invalidate the bitmap on task switch, and leave it at that.

And then on GP fault, just add trivial logic like

if (I_have_an_io_bitmap && it_isnt_installed) {

and now you do get that extra GP fault if you actually use IO
accesses, but the normal case has zero overhead.

Even processes that do ioperm may not be *using* it all the time.


 \ /
  Last update: 2019-11-13 22:21    [W:0.201 / U:1.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site