[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Thu, 7 Jul 2016 10:37:17 +0100
From: David Vrabel <david.vrabel@...rix.com>
To: Jan Beulich <JBeulich@...e.com>, <david.vrabel@...rix.com>,
<boris.ostrovsky@...cle.com>, Juergen Gross <JGross@...e.com>
CC: <xen-devel@...ts.xenproject.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [Xen-devel] [PATCH] xen/privcmd: sprinkle around cond_resched()
calls in mmap ioctl handling
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
Powered by blists - more mailing lists