mirror of
https://github.com/torvalds/linux.git
synced 2026-11-29 10:07:52 +00:00
The nvgrace-gpu-vfio-pci module [1] maps the device memory to the user VA (Qemu) using remap_pfn_range() without adding the memory to the kernel. The device memory pages are not backed by struct page. The previous patch implements the mechanism to handle ECC/poison on memory page without struct page. This new mechanism is being used here. The module registers its memory region and the address_space with the kernel MM for ECC handling using the register_pfn_address_space() registration API exposed by the kernel. Link: https://lore.kernel.org/all/[email protected]/ [1] Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ankit Agrawal <[email protected]> Acked-by: Alex Williamson <[email protected]> Cc: Aniket Agashe <[email protected]> Cc: Borislav Betkov <[email protected]> Cc: David Hildenbrand <[email protected]> Cc: Hanjun Guo <[email protected]> Cc: Ira Weiny <[email protected]> Cc: Jason Gunthorpe <[email protected]> Cc: Joanthan Cameron <[email protected]> Cc: Kevin Tian <[email protected]> Cc: Kirti Wankhede <[email protected]> Cc: Len Brown <[email protected]> Cc: Liam Howlett <[email protected]> Cc: Lorenzo Stoakes <[email protected]> Cc: "Luck, Tony" <[email protected]> Cc: Matthew R. Ochs <[email protected]> Cc: Mauro Carvalho Chehab <[email protected]> Cc: Miaohe Lin <[email protected]> Cc: Michal Hocko <[email protected]> Cc: Mike Rapoport <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Neo Jia <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Shuai Xue <[email protected]> Cc: Smita Koralahalli Channabasappa <[email protected]> Cc: Suren Baghdasaryan <[email protected]> Cc: Tarun Gupta <[email protected]> Cc: Uwe Kleine-König <[email protected]> Cc: Vikram Sethi <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Zhi Wang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>