linux/arch/powerpc
Alexey Kardashevskiy c10c21efa4 powerpc/vfio/iommu/kvm: Do not pin device memory
This new memory does not have page structs as it is not plugged to
the host so gup() will fail anyway.

This adds 2 helpers:
- mm_iommu_newdev() to preregister the "memory device" memory so
the rest of API can still be used;
- mm_iommu_is_devmem() to know if the physical address is one of thise
new regions which we must avoid unpinning of.

This adds @mm to tce_page_is_contained() and iommu_tce_xchg() to test
if the memory is device memory to avoid pfn_to_page().

This adds a check for device memory in mm_iommu_ua_mark_dirty_rm() which
does delayed pages dirtying.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: Paul Mackerras <paulus@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-12-21 16:20:46 +11:00
..
boot powerpc/44x/bamboo: Fix PCI range 2018-12-20 22:21:20 +11:00
configs powerpc/configs: Don't enable PPC_EARLY_DEBUG in defconfigs 2018-12-20 22:21:20 +11:00
crypto powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
include powerpc/vfio/iommu/kvm: Do not pin device memory 2018-12-21 16:20:46 +11:00
kernel powerpc/vfio/iommu/kvm: Do not pin device memory 2018-12-21 16:20:46 +11:00
kvm powerpc/vfio/iommu/kvm: Do not pin device memory 2018-12-21 16:20:46 +11:00
lib powerpc/fsl: Add infrastructure to fixup branch predictor flush 2018-12-20 22:53:39 +11:00
math-emu
mm powerpc/vfio/iommu/kvm: Do not pin device memory 2018-12-21 16:20:46 +11:00
net powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
oprofile powerpc: change CONFIG_6xx to CONFIG_PPC_BOOK3S_32 2018-11-26 22:33:37 +11:00
perf Powerpc/perf: Wire up PMI throttling 2018-12-21 11:32:49 +11:00
platforms powerpc/ioda/npu: Call skiboot's hot reset hook when disabling NPU2 2018-12-21 16:20:46 +11:00
purgatory powerpc updates for 4.19 2018-08-17 11:32:50 -07:00
sysdev powerpc/fsl-rio: fix spelling mistake "reserverd" -> "reserved" 2018-12-21 11:32:49 +11:00
tools powerpc/tools/checkpatch: Ignore DT_SPLIT_BINDING_PATCH 2018-12-04 19:45:01 +11:00
xmon powerpc/xmon: fix dump_segments() 2018-12-19 18:56:32 +11:00
Kbuild powerpc: Add -Werror at arch/powerpc level 2018-10-19 00:56:17 +11:00
Kconfig powerpc/8xx: Allow pinning IMMR TLB when using early debug console 2018-12-21 11:32:49 +11:00
Kconfig.debug powerpc: remove redundant 'default n' from Kconfig-s 2018-10-13 22:21:25 +11:00
Makefile powerpc: generate uapi header and system call table files 2018-12-21 14:46:50 +11:00
Makefile.postlink