Revert "vfio/type1: Improve memory pinning process for raw PFN mapping"
authorAlex Williamson <alex.williamson@redhat.com>
Sat, 2 Jun 2018 14:41:44 +0000 (08:41 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Sat, 2 Jun 2018 14:41:44 +0000 (08:41 -0600)
commit89c29def6b0101fff66a3d74d0178b844f88d732
tree8da69b007e6652aa4e5a9750b18a52b5e3b4e55c
parent0512e0134582ef85dee77d51aae77dcd1edec495
Revert "vfio/type1: Improve memory pinning process for raw PFN mapping"

Bisection by Amadeusz Sławiński implicates this commit leading to bad
page state issues after VM shutdown, likely due to unbalanced page
references.  The original commit was intended only as a performance
improvement, therefore revert for offline rework.

Link: https://lkml.org/lkml/2018/6/2/97
Fixes: 356e88ebe447 ("vfio/type1: Improve memory pinning process for raw PFN mapping")
Cc: Jason Cai (Xiang Feng) <jason.cai@linux.alibaba.com>
Reported-by: Amadeusz Sławiński <amade@asmblr.net>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/vfio_iommu_type1.c