From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 3/4 RFC] x86/p2m: use large pages for MMIO mappings Date: Wed, 16 Sep 2015 11:02:15 +0100 Message-ID: <55F93E27.7080106@citrix.com> References: <55F70C9A02000078000A2A58@prv-mh.provo.novell.com> <55F7E13902000078000A2B7E@prv-mh.provo.novell.com> <55F7E13902000078000A2B7E@prv-mh.provo.novell.com> <55F7E63702000078000A2BD6@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zc9Xg-0002uW-Nw for xen-devel@lists.xenproject.org; Wed, 16 Sep 2015 10:02:20 +0000 In-Reply-To: <55F7E63702000078000A2BD6@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich , xen-devel Cc: Wei Liu , Stefano Stabellini , George Dunlap , Andrew Cooper , Ian Jackson , Ian Campbell , Tiejun Chen , Malcolm Crossley , Keir Fraser List-Id: xen-devel@lists.xenproject.org Hi Jan, On 15/09/2015 08:34, Jan Beulich wrote: > When mapping large BARs (e.g. the frame buffer of a graphics card) the > overhead or establishing such mappings using onle 4k pages has, > particularly after the XSA-125 fix, become unacceptable. Alter the > XEN_DOMCTL_memory_mapping semantics once again, so that there's no > longer a fixed amount of guest frames that represents the upper limit > of what a single invocation can map. Instead bound execution time by > limiting the number of iterations (regardless of page size). > > Signed-off-by: Jan Beulich > --- > RFC reasons: > - ARM side unimplemented (and hence libxc for now made cope with both > models), the main issue (besides my inability to test any change > there) being the many internal uses of map_mmio_regions()) I will give a look to this bits. Regards, -- Julien Grall