Re: [PATCH v3 06/10] vfio/ap: Change saved_pfn to saved_iova

2022-07-12 Thread Anthony Krowiak
Reviewed-by: Tony Krowiak On 7/8/22 6:44 PM, Nicolin Chen wrote: The vfio_ap_ops code maintains both nib address and its PFN, which is redundant, merely because vfio_pin/unpin_pages API wanted pfn. Since vfio_pin/unpin_pages() now accept "iova", change "saved_pfn" to "saved_iova" and remove pfn

[PATCH v3 06/10] vfio/ap: Change saved_pfn to saved_iova

2022-07-08 Thread Nicolin Chen
The vfio_ap_ops code maintains both nib address and its PFN, which is redundant, merely because vfio_pin/unpin_pages API wanted pfn. Since vfio_pin/unpin_pages() now accept "iova", change "saved_pfn" to "saved_iova" and remove pfn in the vfio_ap_validate_nib(). Reviewed-by: Jason Gunthorpe Tested