# git rev-parse -q --verify e44fbdb68049539de9923ce4bad2d277aef54892^{commit} e44fbdb68049539de9923ce4bad2d277aef54892 already have revision, skipping fetch # git checkout -q -f -B kisskb e44fbdb68049539de9923ce4bad2d277aef54892 # git clean -qxdf # < git log -1 # commit e44fbdb68049539de9923ce4bad2d277aef54892 # Author: Nicholas Piggin # Date: Mon Jul 12 11:36:50 2021 +1000 # # KVM: PPC: Book3S HV P9: Fix guest TM support # # The conversion to C introduced several bugs in TM handling that can # cause host crashes with TM bad thing interrupts. Mostly just simple # typos or missed logic in the conversion that got through due to my # not testing TM in the guest sufficiently. # # - Early TM emulation for the softpatch interrupt should be done if fake # suspend mode is _not_ active. # # - Early TM emulation wants to return immediately to the guest so as to # not doom transactions unnecessarily. # # - And if exiting from the guest, the host MSR should include the TM[S] # bit if the guest was T/S, before it is treclaimed. # # After this fix, all the TM selftests pass when running on a P9 processor # that implements TM with softpatch interrupt. # # Fixes: 89d35b2391015 ("KVM: PPC: Book3S HV P9: Implement the rest of the P9 path in C") # Reported-by: Alexey Kardashevskiy # Signed-off-by: Nicholas Piggin # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20210712013650.376325-1-npiggin@gmail.com # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 e44fbdb68049539de9923ce4bad2d277aef54892 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pseries_defconfig+FA_DUMP_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- pseries_defconfig # Added to kconfig CONFIG_CRASH_DUMP=y # Added to kconfig CONFIG_FA_DUMP=y # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pseries_defconfig+FA_DUMP_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pseries_defconfig+FA_DUMP_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig .config:4147:warning: override: reassigning to symbol CRASH_DUMP .config:4148:warning: override: reassigning to symbol FA_DUMP # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_pseries_defconfig+FA_DUMP_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_pseries_defconfig+FA_DUMP_powerpc-gcc5 # Build took: 0:03:32.045172