]> Git Repo - linux.git/commit
x86/setup: Call early_reserve_memory() earlier
authorJuergen Gross <[email protected]>
Mon, 20 Sep 2021 12:04:21 +0000 (14:04 +0200)
committerBorislav Petkov <[email protected]>
Tue, 21 Sep 2021 07:52:08 +0000 (09:52 +0200)
commit8aa83e6395ce047a506f0b16edca45f36c1ae7f8
treed43aa5be2c48ec5e13804003964cdf886338fd64
parentd4ffd5df9d18031b6a53f934388726775b4452d3
x86/setup: Call early_reserve_memory() earlier

Commit in Fixes introduced early_reserve_memory() to do all needed
initial memblock_reserve() calls in one function. Unfortunately, the call
of early_reserve_memory() is done too late for Xen dom0, as in some
cases a Xen hook called by e820__memory_setup() will need those memory
reservations to have happened already.

Move the call of early_reserve_memory() before the call of
e820__memory_setup() in order to avoid such problems.

Fixes: a799c2bd29d1 ("x86/setup: Consolidate early memory reservations")
Reported-by: Marek Marczykowski-Górecki <[email protected]>
Signed-off-by: Juergen Gross <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Tested-by: Marek Marczykowski-Górecki <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Cc: [email protected]
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/kernel/setup.c
This page took 0.059163 seconds and 4 git commands to generate.