Re: [RFC PATCH 3/3] target: try satisfying memory requests with contiguous blocks

2012-09-05 Thread Nicholas A. Bellinger
On Wed, 2012-09-05 at 17:13 +0200, Paolo Bonzini wrote: > transport_generic_get_mem's strategy of allocating pages one-by-one > for the data scatterlist may fail for even not-so-big data transfers > if the underlying device poses a small limit on the number of segments. > > This patch fixes this p

[RFC PATCH 3/3] target: try satisfying memory requests with contiguous blocks

2012-09-05 Thread Paolo Bonzini
transport_generic_get_mem's strategy of allocating pages one-by-one for the data scatterlist may fail for even not-so-big data transfers if the underlying device poses a small limit on the number of segments. This patch fixes this problem by trying to allocate pages in relatively large groups (at