# 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-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 e44fbdb68049539de9923ce4bad2d277aef54892 # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+NO_NUMA_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- powernv_defconfig # Added to kconfig CONFIG_NUMA=n # < make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+NO_NUMA_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+NO_NUMA_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 120 ARCH=powerpc O=/kisskb/build/powerpc-fixes_powernv_defconfig+NO_NUMA_powerpc-gcc9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-9.2.0-nolibc/powerpc64-linux/bin/powerpc64-linux- Completed OK # rm -rf /kisskb/build/powerpc-fixes_powernv_defconfig+NO_NUMA_powerpc-gcc9 # Build took: 0:02:19.013135