# git rev-parse -q --verify 84b028243ef07a3f65c1857343ada2b1022f8bed^{commit} 84b028243ef07a3f65c1857343ada2b1022f8bed already have revision, skipping fetch # git checkout -q -f -B kisskb 84b028243ef07a3f65c1857343ada2b1022f8bed # git clean -qxdf # < git log -1 # commit 84b028243ef07a3f65c1857343ada2b1022f8bed # Author: Suraj Jitindar Singh # Date: Mon Jun 17 17:16:19 2019 +1000 # # KVM: PPC: Book3S HV: Only write DAWR[X] when handling h_set_dawr in real mode # # The hcall H_SET_DAWR is used by a guest to set the data address # watchpoint register (DAWR). This hcall is handled in the host in # kvmppc_h_set_dawr() which can be called in either real mode on the # guest exit path from hcall_try_real_mode() in book3s_hv_rmhandlers.S, # or in virtual mode when called from kvmppc_pseries_do_hcall() in # book3s_hv.c. # # The function kvmppc_h_set_dawr() updates the dawr and dawrx fields in # the vcpu struct accordingly and then also writes the respective values # into the DAWR and DAWRX registers directly. It is necessary to write # the registers directly here when calling the function in real mode # since the path to re-enter the guest won't do this. However when in # virtual mode the host DAWR and DAWRX values have already been # restored, and so writing the registers would overwrite these. # Additionally there is no reason to write the guest values here as # these will be read from the vcpu struct and written to the registers # appropriately the next time the vcpu is run. # # This also avoids the case when handling h_set_dawr for a nested guest # where the guest hypervisor isn't able to write the DAWR and DAWRX # registers directly and must rely on the real hypervisor to do this for # it when it calls H_ENTER_NESTED. # # Fixes: c1fe190c0672 ("powerpc: Add force enable of DAWR on P9 option") # Signed-off-by: Suraj Jitindar Singh # Signed-off-by: Michael Ellerman # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-gcc --version # < /opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux-ld --version # < git log --format=%s --max-count=1 84b028243ef07a3f65c1857343ada2b1022f8bed # < make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_defconfig # Added to kconfig CONFIG_PPC_E500MC=y # Added to kconfig CONFIG_VIRTUALIZATION=y # Added to kconfig CONFIG_KVM_E500MC=y # Added to kconfig # yes \n | make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- oldconfig yes: standard output: Broken pipe # make -s -j 8 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-8.1.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11, from /kisskb/src/include/linux/list.h:9, from /kisskb/src/include/linux/module.h:9, from /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:15: /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c: In function 'allocate_bd': /kisskb/src/include/linux/err.h:22:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO) ^ /kisskb/src/include/linux/compiler.h:78:42: note: in definition of macro 'unlikely' # define unlikely(x) __builtin_expect(!!(x), 0) ^ /kisskb/src/drivers/net/ethernet/freescale/fs_enet/mac-scc.c:139:6: note: in expansion of macro 'IS_ERR_VALUE' if (IS_ERR_VALUE(fep->ring_mem_addr)) ^~~~~~~~~~~~ /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8541cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) /kisskb/src/arch/powerpc/boot/dts/fsl/mpc8555cds.dts:334.3-21: Warning (pci_device_bus_num): /pci@e0008000/i8259@19000:bus-range: PCI bus number 1 out of range, expected (0 - 0) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd79c80) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6342442 Bytes = 6193.79 KiB = 6.05 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377627 Bytes = 6228.15 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:37 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377469 Bytes = 6228.00 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6379229 Bytes = 6229.72 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6379606 Bytes = 6230.08 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377632 Bytes = 6228.16 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6380155 Bytes = 6230.62 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:38 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377698 Bytes = 6228.22 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e00314 INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) INFO: Uncompressed kernel (size 0xd8a4b4) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xe00000) Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377710 Bytes = 6228.23 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6380412 Bytes = 6230.87 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377991 Bytes = 6228.51 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377711 Bytes = 6228.23 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6378022 Bytes = 6228.54 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377394 Bytes = 6227.92 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6378222 Bytes = 6228.73 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e002b4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 17:34:43 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6377808 Bytes = 6228.33 KiB = 6.08 MiB Load Address: 00e00000 Entry Point: 00e00314 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_defconfig+KVM_powerpc-gcc8 # Build took: 0:04:57.994901