Paolo Bonzini add6a0cd1c KVM: MMU: try to fix up page faults before giving up
The vGPU folks would like to trap the first access to a BAR by setting
vm_ops on the VMAs produced by mmap-ing a VFIO device.  The fault handler
then can use remap_pfn_range to place some non-reserved pages in the VMA.

This kind of VM_PFNMAP mapping is not handled by KVM, but follow_pfn
and fixup_user_fault together help supporting it.  The patch also supports
VM_MIXEDMAP vmas where the pfns are not reserved and thus subject to
reference counting.

Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Tested-by: Neo Jia <cjia@nvidia.com>
Reported-by: Kirti Wankhede <kwankhede@nvidia.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2016-07-05 14:41:26 +02:00
..
2016-05-26 20:00:28 -07:00
2015-06-24 17:49:45 -07:00
2016-05-23 11:18:01 -07:00
2016-05-23 11:18:01 -07:00
2016-05-23 17:04:14 -07:00
2016-03-17 15:09:34 -07:00
2016-05-26 20:00:28 -07:00
2015-09-08 15:35:28 -07:00
2016-05-27 15:57:31 -07:00
2016-03-17 15:09:34 -07:00
2015-11-05 19:34:48 -08:00
2016-05-27 15:57:31 -07:00
2016-03-17 15:09:34 -07:00
2016-05-19 15:20:54 -06:00
2016-05-23 17:04:14 -07:00
2016-05-20 17:58:30 -07:00