Re: [V2] powerpc: Fix oops due to wrong access of lppaca on non virtualized platform

2018-04-03 Thread Michael Ellerman
On Mon, 2018-04-02 at 07:33:37 UTC, "Aneesh Kumar K.V" wrote: > Commit 8e0b634b1327 ("powerpc/64s: Do not allocate lppaca if we are not > virtualized") removed allocation of lppaca on non virtualized platform. But > with > CONFIG_PPC_SPLPAR enabled, we do access lppaca non-virtualized platform in

Re: [PATCH V2] powerpc: Fix oops due to wrong access of lppaca on non virtualized platform

2018-04-02 Thread Nicholas Piggin
On Mon, 2 Apr 2018 13:03:37 +0530 "Aneesh Kumar K.V" wrote: > Commit 8e0b634b1327 ("powerpc/64s: Do not allocate lppaca if we are not > virtualized") removed allocation of lppaca on non virtualized platform. But > with > CONFIG_PPC_SPLPAR enabled, we do access lppaca non-virtualized platform in

[PATCH V2] powerpc: Fix oops due to wrong access of lppaca on non virtualized platform

2018-04-02 Thread Aneesh Kumar K.V
Commit 8e0b634b1327 ("powerpc/64s: Do not allocate lppaca if we are not virtualized") removed allocation of lppaca on non virtualized platform. But with CONFIG_PPC_SPLPAR enabled, we do access lppaca non-virtualized platform in some code paths. Fix this but adding runtime check for virtualized pla