aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorStefano Garzarella <[email protected]>2023-04-04 15:17:34 +0200
committerMichael S. Tsirkin <[email protected]>2023-04-21 03:02:34 -0400
commit4bb94d2de2fa90aa8d4e1ce940b1b2f7708cf141 (patch)
tree23241f38a4a66e0505def34c6e633a308456d844 /drivers/usb/cdns3/cdns3-debug.h
parentd7621c28fca1c16f9e94245479792024a5676c50 (diff)
vdpa_sim: add support for user VA
The new "use_va" module parameter (default: true) is used in vdpa_alloc_device() to inform the vDPA framework that the device supports VA. vringh is initialized to use VA only when "use_va" is true and the user's mm has been bound. So, only when the bus supports user VA (e.g. vhost-vdpa). vdpasim_mm_work_fn work is used to serialize the binding to a new address space when the .bind_mm callback is invoked, and unbinding when the .unbind_mm callback is invoked. Call mmget_not_zero()/kthread_use_mm() inside the worker function to pin the address space only as long as needed, following the documentation of mmget() in include/linux/sched/mm.h: * Never use this function to pin this address space for an * unbounded/indefinite amount of time. Acked-by: Jason Wang <[email protected]> Signed-off-by: Stefano Garzarella <[email protected]> Message-Id: <[email protected]> Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions