# git rev-parse -q --verify 228b607d8ea1b7d4561945058d5692709099d432^{commit} 228b607d8ea1b7d4561945058d5692709099d432 already have revision, skipping fetch # git checkout -q -f -B kisskb 228b607d8ea1b7d4561945058d5692709099d432 # git clean -qxdf # < git log -1 # commit 228b607d8ea1b7d4561945058d5692709099d432 # Author: Marcus Comstedt # Date: Sun Dec 15 10:49:00 2019 +0100 # # KVM: PPC: Book3S HV: Fix regression on big endian hosts # # VCPU_CR is the offset of arch.regs.ccr in kvm_vcpu. # arch/powerpc/include/asm/kvm_host.h defines arch.regs as a struct # pt_regs, and arch/powerpc/include/asm/ptrace.h defines the ccr field # of pt_regs as "unsigned long ccr". Since unsigned long is 64 bits, a # 64-bit load needs to be used to load it, unless an endianness specific # correction offset is added to access the desired subpart. In this # case there is no reason to _not_ use a 64 bit load though. # # Fixes: 6c85b7bc637b ("powerpc/kvm: Use UV_RETURN ucall to return to ultravisor") # Cc: stable@vger.kernel.org # v5.4+ # Signed-off-by: Marcus Comstedt # Signed-off-by: Michael Ellerman # Link: https://lore.kernel.org/r/20191215094900.46740-1-marcus@mc.pp.se # < /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 228b607d8ea1b7d4561945058d5692709099d432 # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc83xx_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc83xx_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) INFO: Uncompressed kernel (size 0x683dd8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:53 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3352926 Bytes = 3274.34 KiB = 3.20 MiB Load Address: 00000000 Entry Point: 00000000 INFO: Uncompressed kernel (size 0x6944c0) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0x700000) Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3382804 Bytes = 3303.52 KiB = 3.23 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3381836 Bytes = 3302.57 KiB = 3.23 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3382396 Bytes = 3303.12 KiB = 3.23 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3382826 Bytes = 3303.54 KiB = 3.23 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3381779 Bytes = 3302.52 KiB = 3.23 MiB Load Address: 00700000 Entry Point: 00700294 Image Name: Linux-5.5.0-rc1-g228b607d8ea1 Created: Tue Dec 17 23:23:54 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 3382667 Bytes = 3303.39 KiB = 3.23 MiB Load Address: 00700000 Entry Point: 00700294 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc83xx_defconfig_powerpc-gcc5 # Build took: 0:00:55.396597