Re: [PATCH v2] vfio/type1: Restore mapping performance with mdev support

2016-12-20 Thread Kirti Wankhede
On 12/20/2016 3:43 AM, Alex Williamson wrote: > As part of the mdev support, type1 now gets a task reference per > vfio_dma and uses that to get an mm reference for the task while > working on accounting. That's correct, but it's not fast. For some > paths, like vfio_pin_pages_remote(), we know

[PATCH v2] vfio/type1: Restore mapping performance with mdev support

2016-12-19 Thread Alex Williamson
As part of the mdev support, type1 now gets a task reference per vfio_dma and uses that to get an mm reference for the task while working on accounting. That's correct, but it's not fast. For some paths, like vfio_pin_pages_remote(), we know we're only called from user context, so we can restore