Re: [RFT][PATCH v2 5/9] vfio/ap: Remove redundant pfn

2022-07-06 Thread Jason Gunthorpe
On Tue, Jul 05, 2022 at 11:27:55PM -0700, 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", remove duplicated > pfn code in their callers too.

[RFT][PATCH v2 5/9] vfio/ap: Remove redundant pfn

2022-07-05 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", remove duplicated pfn code in their callers too. Signed-off-by: Nicolin Chen --- drivers/s390/crypto/vfio_ap_ops.c