# 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/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-gcc --version # < /opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux-ld --version # < git log --format=%s --max-count=1 e44fbdb68049539de9923ce4bad2d277aef54892 # < make -s -j 120 ARCH=sparc64 O=/kisskb/build/powerpc-fixes_sparc64-defconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- defconfig # < make -s -j 120 ARCH=sparc64 O=/kisskb/build/powerpc-fixes_sparc64-defconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- help # make -s -j 120 ARCH=sparc64 O=/kisskb/build/powerpc-fixes_sparc64-defconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- olddefconfig # make -s -j 120 ARCH=sparc64 O=/kisskb/build/powerpc-fixes_sparc64-defconfig_sparc64 CROSS_COMPILE=/opt/cross/kisskb/br-sparc64-full-2016.08-613-ge98b4dd/bin/sparc64-linux- :1515:2: warning: #warning syscall clone3 not implemented [-Wcpp] WARNING: modpost: EXPORT symbol "_mcount" [vmlinux] version ... Is "_mcount" prototyped in ? kernel: arch/sparc/boot/image is ready kernel: arch/sparc/boot/zImage is ready Completed OK # rm -rf /kisskb/build/powerpc-fixes_sparc64-defconfig_sparc64 # Build took: 0:00:53.918511