]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:14:36 +0000 (18:14 -0700)
commitaa1cc4d4753f56f85c3df65a574d8fdb5823c243
tree9d4dce02381f88a1e5810d5625d395b3ff8990c1
parent6232876e14a5a7fc0b0449a740bda8ffe2ed59ed
xen: use same main loop for counting and remapping pages

commit dd14be92fbf5bc1ef7343f34968440e44e21b46a upstream.

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>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/setup.c