Skip to content

Commit

Permalink
[S390] kernel: Storing machine flags early in lowcore
Browse files Browse the repository at this point in the history
Currently, the machine_flags are stored late in the startup
initialization which results in failing machine type checks
(e.g. for MACHINE_IS_VM).
To allow these checks, store the machine flags in the lowcore
when the machine type has been detected.

Moving the machine_flags to the lowcore has been introduced with
git commit 25097bf

Signed-off-by: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Hendrik Brueckner authored and Martin Schwidefsky committed Aug 7, 2009
1 parent 90bc1a6 commit 677c1dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/s390/kernel/early.c
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,9 @@ static noinline __init void detect_machine_type(void)
machine_flags |= MACHINE_FLAG_KVM;
else
machine_flags |= MACHINE_FLAG_VM;

/* Store machine flags for setting up lowcore early */
S390_lowcore.machine_flags = machine_flags;
}

static __init void early_pgm_check_handler(void)
Expand Down

0 comments on commit 677c1dd

Please sign in to comment.