lkml.org 
[lkml]   [2016]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [Xen-devel] [PATCH] xen/privcmd: sprinkle around cond_resched() calls in mmap ioctl handling
From
Date
On 07/07/16 08:35, Jan Beulich wrote:
> Many of these operations can take arbitrarily long, which can become a
> problem irrespective of them being exposed to privileged users only.

If this is a concern I would rather see large numbers of mapping
requests processed in smaller batches. This would also limit the amount
of memory needed.

Note also that xen_remap_domain_gfn() array already has a cond_resched()
after every batch of 16 GFNs.

David

\
 
 \ /
  Last update: 2016-07-07 12:21    [W:0.029 / U:0.256 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site