xen: use same main loop for counting and remapping pages
authorJuergen Gross <jgross@suse.com>
Wed, 18 May 2016 14:44:54 +0000 (16:44 +0200)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 24 May 2016 11:59:04 +0000 (12:59 +0100)
commitdd14be92fbf5bc1ef7343f34968440e44e21b46a
tree22333953e2ca1753ada672ce79e62c7d4f1dd542
parentf0f393877c71ad227d36705d61d1e4062bc29cf5
xen: use same main loop for counting and remapping pages

Instead of having two functions for cycling through the E820 map in
order to count to be remapped pages and remap them later, just use one
function with a caller supplied sub-function called for each region to
be processed. This eliminates the possibility of a mismatch between
both loops which showed up in certain configurations.

Suggested-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/setup.c