]> www.infradead.org Git - users/jedix/linux-maple.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)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 15 Jul 2016 14:01:11 +0000 (10:01 -0400)
commitf6d6cf25f0200a37433a4558ab3a047f3748409e
treeeca50281ee0d873eb1124b93a66809dd1cbfc8cd
parentad4995196dadeb80065a48dfcdb34f467ac1c654
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>
(cherry picked from commit dd14be92fbf5bc1ef7343f34968440e44e21b46a)
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
OraBug: 24012238
arch/x86/xen/setup.c