powerpc/64s: Fix MASKABLE_RELON_EXCEPTION_HV_OOL macro
PATCH 1/1 powerpc/64s: Fix MASKABLE_RELON_EXCEPTION_HV_OOL macro
Commit f14e953b191f ("powerpc/64s: Add support to take additional parameter in MASKABLE_* macro") messed up MASKABLE_RELON_EXCEPTION_HV_OOL macro by adding the wrong__SOFTEN__ test which caused guest kernel trash at boot. Patch to fix
the macro to use SOFTEN_TEST_HV instead of SOFTEN_NOTEST_HV.
--- arch/powerpc/include/asm/exception-64s.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/powerpc/include/asm/exception-64s.h +1 -1
@@ -645,7 +645,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943) EXC_HV, SOFTEN_TEST_HV, bitmask)#define MASKABLE_RELON_EXCEPTION_HV_OOL (vec, label, bitmask) \ - MASKABLE_EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_NOTEST_HV, vec, bitmask);\ + MASKABLE_EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_TEST_HV, vec, bitmask);\ EXCEPTION_RELON_PROLOG_PSERIES_1(label, EXC_HV)/*
Signature · 1 line
2.7.4
Quoted 18 lines · Madhavan Srinivasan
Commit
f14e953b191f("powerpc/64s: Add support to take additional parameter in MASKABLE_* macro") messed upMASKABLE_RELON_EXCEPTION_HV_OOLmacro by adding the wrong__SOFTEN__test which caused guest kernel trash at boot. Patch to fix
the macro to useSOFTEN_TEST_HVinstead ofSOFTEN_NOTEST_HV.Reported-by Alexey Kardashevskiy <[email protected]>Fix-Suggested-by Michael Ellerman <[email protected]>Signed-off-by Madhavan Srinivasan <[email protected]>--- arch/powerpc/include/asm/exception-64s.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/powerpc/include/asm/exception-64s.h +0
-0
arch/powerpc/include/asm/exception-64s.h END_FTR_SECTION_NESTED(ftr,ftr,943) · line 651
Quoted 8 lines
arch/powerpc/include/asm/exception-64s.h +1
-1@@ -645,7 +645,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943) EXC_HV, SOFTEN_TEST_HV, bitmask)#define MASKABLE_RELON_EXCEPTION_HV_OOL (vec, label, bitmask) \ - MASKABLE_EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_NOTEST_HV, vec, bitmask);\ + MASKABLE_EXCEPTION_PROLOG_1(PACA_EXGEN, SOFTEN_TEST_HV, vec, bitmask);\ EXCEPTION_RELON_PROLOG_PSERIES_1(label, EXC_HV)/*
Signature · 1 line
Alexey
Michael Ellerman
AppliedQuoted 9 lines · Madhavan Srinivasan
Commit
f14e953b191f("powerpc/64s: Add support to take additional parameter in MASKABLE_* macro") messed upMASKABLE_RELON_EXCEPTION_HV_OOLmacro by adding the wrong__SOFTEN__test which caused guest kernel trash at boot. Patch to fix
the macro to useSOFTEN_TEST_HVinstead ofSOFTEN_NOTEST_HV.Reported-by Alexey Kardashevskiy <[email protected]>Fix-Suggested-by Michael Ellerman <[email protected]>Signed-off-by Madhavan Srinivasan <[email protected]>Tested-by Alexey Kardashevskiy <[email protected]>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/5c11d1e52d996749897a8616860b18
cheers