# 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-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 84b028243ef07a3f65c1857343ada2b1022f8bed # < make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- mpc85xx_smp_defconfig # make -s -j 48 ARCH=powerpc O=/kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 CROSS_COMPILE=/opt/cross/kisskb/korg/gcc-5.5.0-nolibc/powerpc64-linux/bin/powerpc64-linux- In file included from /kisskb/src/include/linux/kernel.h:11:0, 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 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc695ec) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) INFO: Uncompressed kernel (size 0xc58db8) overlaps the address of the wrapper(0x400000) INFO: Fixing the link_address of wrapper to (0xd00000) Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:48 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120020 Bytes = 5976.58 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120184 Bytes = 5976.74 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120920 Bytes = 5977.46 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120246 Bytes = 5976.80 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120208 Bytes = 5976.77 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120507 Bytes = 5977.06 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:49 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120234 Bytes = 5976.79 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120018 Bytes = 5976.58 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120134 Bytes = 5976.69 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6089859 Bytes = 5947.13 KiB = 5.81 MiB Load Address: 00000000 Entry Point: 00000000 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120141 Bytes = 5976.70 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:50 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6121110 Bytes = 5977.65 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120981 Bytes = 5977.52 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120195 Bytes = 5976.75 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:51 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120060 Bytes = 5976.62 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d00314 Image Name: Linux-5.2.0-rc2-g84b028243ef0 Created: Wed Jun 19 00:06:52 2019 Image Type: PowerPC Linux Kernel Image (gzip compressed) Data Size: 6120194 Bytes = 5976.75 KiB = 5.84 MiB Load Address: 00d00000 Entry Point: 00d002a4 Completed OK # rm -rf /kisskb/build/powerpc-fixes_mpc85xx_smp_defconfig_powerpc-gcc5 # Build took: 0:02:11.350116