Documented in 1 files:
Defined in 2 files as a prototype:
- drivers/vhost/vhost.h, line 282 (as a prototype)
- include/linux/vhost_iotlb.h, line 50 (as a prototype)
Defined in 1 files as a function:
Referenced in 3 files:
Smatch caller information:
drivers/vdpa/vdpa_user/iova_domain.c vduse_domain_free_coherent() -> vhost_iotlb_map_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iotlb | 4096-ptr_max |
| PARAM_VALUE | 0 | iotlb->root.rb_root.rb_node | 1-u64max |
| PARAM_VALUE | 1 | map | 4096-ptr_max |
| PARAM_VALUE | 1 | map->opaque | 4096-ptr_max |
| CAPPED_DATA | 1 | map->start | 1 |
| DATA_SOURCE | 1 | map | r vhost_iotlb_itree_first |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &domain->iotlb_lock | ||
| TYPE_LOCK | (struct vduse_iova_domain)->iotlb_lock |
drivers/vdpa/vdpa_user/iova_domain.c vduse_iotlb_del_range() -> vhost_iotlb_map_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iotlb | 4096-ptr_max |
| PARAM_VALUE | 0 | iotlb->root.rb_root.rb_node | 1-u64max |
| PARAM_VALUE | 1 | map | 4096-ptr_max |
| PARAM_VALUE | 1 | map->opaque | 4096-ptr_max |
| CAPPED_DATA | 1 | map->start | 1 |
| DATA_SOURCE | 1 | map | r vhost_iotlb_itree_first |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &domain->iotlb_lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct vduse_iova_domain)->iotlb_lock |
drivers/vhost/vdpa.c vhost_vdpa_pa_unmap() -> vhost_iotlb_map_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iotlb | 4096-ptr_max |
| PARAM_VALUE | 0 | iotlb->root.rb_root.rb_node | 1-u64max |
| PARAM_VALUE | 1 | map | 4096-ptr_max |
| CAPPED_DATA | 1 | map->start | 1 |
| DATA_SOURCE | 0 | iotlb | $1 |
| DATA_SOURCE | 1 | map | r vhost_iotlb_itree_first |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/vhost/vdpa.c vhost_vdpa_va_unmap() -> vhost_iotlb_map_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iotlb | 4096-ptr_max |
| PARAM_VALUE | 0 | iotlb->root.rb_root.rb_node | 1-u64max |
| PARAM_VALUE | 1 | map | 4096-ptr_max |
| PARAM_VALUE | 1 | map->opaque | 4096-ptr_max |
| CAPPED_DATA | 1 | map->start | 1 |
| DATA_SOURCE | 0 | iotlb | $1 |
| DATA_SOURCE | 1 | map | r vhost_iotlb_itree_first |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/vhost/iotlb.c vhost_iotlb_del_range() -> vhost_iotlb_map_free()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | iotlb | 4096-ptr_max |
| PARAM_VALUE | 0 | iotlb->root.rb_root.rb_node | 1-u64max |
| PARAM_VALUE | 1 | map | 4096-ptr_max |
| CAPPED_DATA | 1 | map->start | 1 |
| DATA_SOURCE | 0 | iotlb | $0 |
| DATA_SOURCE | 1 | map | r vhost_iotlb_itree_iter_first |
| PREEMPT_ADD | |||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mm->mmap_lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| HALF_LOCKED2 | &vdpasim->iommu_lock |