Re: [Xen-devel] [PATCH] xen/privcmd: sprinkle around cond_resched() calls in mmap ioctl handling
From: David Vrabel
Date: Thu Jul 07 2016 - 05:37:37 EST
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