Re: [Xen-devel] [PATCHv6 3/3] xen/privcmd: improve performance of MMAPBATCH_V2

2015-03-09 Thread Stefano Stabellini
On Mon, 9 Mar 2015, David Vrabel wrote: > On 09/03/15 12:25, Stefano Stabellini wrote: > > On Fri, 6 Mar 2015, David Vrabel wrote: > >> Make the IOCTL_PRIVCMD_MMAPBATCH_V2 (and older V1 version) map > >> multiple frames at a time rather than one at a time, despite the pages > >> being non-consecuti

Re: [Xen-devel] [PATCHv6 3/3] xen/privcmd: improve performance of MMAPBATCH_V2

2015-03-09 Thread David Vrabel
On 09/03/15 12:25, Stefano Stabellini wrote: > On Fri, 6 Mar 2015, David Vrabel wrote: >> >> +/* >> + * Similar to traverse_pages, but use each page as a "block" of >> + * data to be processed as one unit. >> + */ >> +static int traverse_pages_block(unsigned nelem, size_t size, >> +

Re: [Xen-devel] [PATCHv6 3/3] xen/privcmd: improve performance of MMAPBATCH_V2

2015-03-09 Thread David Vrabel
On 09/03/15 12:25, Stefano Stabellini wrote: > On Fri, 6 Mar 2015, David Vrabel wrote: >> Make the IOCTL_PRIVCMD_MMAPBATCH_V2 (and older V1 version) map >> multiple frames at a time rather than one at a time, despite the pages >> being non-consecutive GFNs. >> >> xen_remap_foreign_mfn_array() is ad

Re: [Xen-devel] [PATCHv6 3/3] xen/privcmd: improve performance of MMAPBATCH_V2

2015-03-09 Thread Stefano Stabellini
On Fri, 6 Mar 2015, David Vrabel wrote: > Make the IOCTL_PRIVCMD_MMAPBATCH_V2 (and older V1 version) map > multiple frames at a time rather than one at a time, despite the pages > being non-consecutive GFNs. > > xen_remap_foreign_mfn_array() is added which maps an array of GFNs > (instead of a con

[Xen-devel] [PATCHv6 3/3] xen/privcmd: improve performance of MMAPBATCH_V2

2015-03-06 Thread David Vrabel
Make the IOCTL_PRIVCMD_MMAPBATCH_V2 (and older V1 version) map multiple frames at a time rather than one at a time, despite the pages being non-consecutive GFNs. xen_remap_foreign_mfn_array() is added which maps an array of GFNs (instead of a consecutive range of GFNs). Migrate times are signific