# 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-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 e44fbdb68049539de9923ce4bad2d277aef54892 # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_adder875_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- adder875_defconfig # < make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_adder875_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- help # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_adder875_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- olddefconfig # make -s -j 160 ARCH=powerpc O=/kisskb/build/powerpc-fixes_adder875_defconfig_powerpc-gcc4.9 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-4.9.4-nolibc/powerpc64-linux/bin/powerpc64-linux- /kisskb/src/net/sched/sch_frag.c: In function 'sch_fragment': /kisskb/src/net/sched/sch_frag.c:93:10: warning: missing braces around initializer [-Wmissing-braces] struct rtable sch_frag_rt = { 0 }; ^ /kisskb/src/net/sched/sch_frag.c:93:10: warning: (near initialization for 'sch_frag_rt.dst') [-Wmissing-braces] Completed OK # rm -rf /kisskb/build/powerpc-fixes_adder875_defconfig_powerpc-gcc4.9 # Build took: 0:00:21.752164