RE: [PATCH V6 3/7] vfio/type1: track locked_vm per dma

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Steve Sistare <steven.sistare@xxxxxxxxxx>
> Sent: Saturday, December 17, 2022 2:51 AM
> 
> Track locked_vm per dma struct, and create a new subroutine, both for use
> in a subsequent patch.  No functional change.
> 
> Fixes: c3cbab24db38 ("vfio/type1: implement interfaces to update vaddr")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Steve Sistare <steven.sistare@xxxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>, with one nit:
 
> -static int vfio_lock_acct(struct vfio_dma *dma, long npage, bool async)
> +static int task_lock_acct(struct task_struct *task, struct mm_struct *mm,
> +			  bool lock_cap, long npage, bool async)

is it more accurate to call it mm_lock_acct() given almost all invocations
in this function are around mm?




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux