| /OK3568_Linux_fs/kernel/drivers/vhost/ |
| H A D | iotlb.c | 28 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb, in vhost_iotlb_map_free() argument 31 vhost_iotlb_itree_remove(map, &iotlb->root); in vhost_iotlb_map_free() 34 iotlb->nmaps--; in vhost_iotlb_map_free() 49 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, in vhost_iotlb_add_range() argument 58 if (iotlb->limit && in vhost_iotlb_add_range() 59 iotlb->nmaps == iotlb->limit && in vhost_iotlb_add_range() 60 iotlb->flags & VHOST_IOTLB_FLAG_RETIRE) { in vhost_iotlb_add_range() 61 map = list_first_entry(&iotlb->list, typeof(*map), link); in vhost_iotlb_add_range() 62 vhost_iotlb_map_free(iotlb, map); in vhost_iotlb_add_range() 75 iotlb->nmaps++; in vhost_iotlb_add_range() [all …]
|
| H A D | vhost.c | 339 vq->iotlb = NULL; in vhost_vq_reset() 482 dev->iotlb = NULL; in vhost_dev_init() 711 vhost_iotlb_free(dev->iotlb); in vhost_dev_cleanup() 712 dev->iotlb = NULL; in vhost_dev_cleanup() 822 if (!vq->iotlb) in vhost_copy_to_user() 857 if (!vq->iotlb) in vhost_copy_from_user() 938 if (!vq->iotlb) { \ 983 if (!vq->iotlb) { \ 1063 struct vhost_iotlb_msg *vq_msg = &node->msg.iotlb; in vhost_iotlb_notify_vq() 1102 if (!dev->iotlb) { in vhost_process_iotlb_msg() [all …]
|
| H A D | vdpa.c | 516 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_iotlb_unmap() local 521 while ((map = vhost_iotlb_itree_first(iotlb, start, last)) != NULL) { in vhost_vdpa_iotlb_unmap() 531 vhost_iotlb_map_free(iotlb, map); in vhost_vdpa_iotlb_unmap() 540 kfree(dev->iotlb); in vhost_vdpa_iotlb_free() 541 dev->iotlb = NULL; in vhost_vdpa_iotlb_free() 574 r = vhost_iotlb_add_range(dev->iotlb, iova, iova + size - 1, in vhost_vdpa_map() 583 r = ops->set_map(vdpa, dev->iotlb); in vhost_vdpa_map() 590 vhost_iotlb_del_range(dev->iotlb, iova, iova + size - 1); in vhost_vdpa_map() 609 ops->set_map(vdpa, dev->iotlb); in vhost_vdpa_unmap() 619 struct vhost_iotlb *iotlb = dev->iotlb; in vhost_vdpa_process_iotlb_update() local [all …]
|
| H A D | vhost.h | 118 struct vhost_iotlb *iotlb; member 155 struct vhost_iotlb *iotlb; member 179 void vhost_dev_reset_owner(struct vhost_dev *dev, struct vhost_iotlb *iotlb); 228 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
|
| H A D | Makefile | 19 vhost_iotlb-y := iotlb.o
|
| H A D | vringh.c | 1078 struct vhost_iotlb *iotlb = vrh->iotlb; in iotlb_translate() local 1090 map = vhost_iotlb_itree_first(iotlb, addr, in iotlb_translate() 1271 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb) in vringh_set_iotlb() argument 1273 vrh->iotlb = iotlb; in vringh_set_iotlb()
|
| /OK3568_Linux_fs/kernel/include/linux/ |
| H A D | vhost_iotlb.h | 32 int vhost_iotlb_add_range(struct vhost_iotlb *iotlb, u64 start, u64 last, 34 void vhost_iotlb_del_range(struct vhost_iotlb *iotlb, u64 start, u64 last); 37 void vhost_iotlb_free(struct vhost_iotlb *iotlb); 38 void vhost_iotlb_reset(struct vhost_iotlb *iotlb); 41 vhost_iotlb_itree_first(struct vhost_iotlb *iotlb, u64 start, u64 last); 45 void vhost_iotlb_map_free(struct vhost_iotlb *iotlb,
|
| H A D | vringh.h | 47 struct vhost_iotlb *iotlb; member 261 void vringh_set_iotlb(struct vringh *vrh, struct vhost_iotlb *iotlb);
|
| H A D | vdpa.h | 236 int (*set_map)(struct vdpa_device *vdev, struct vhost_iotlb *iotlb);
|
| /OK3568_Linux_fs/kernel/drivers/vdpa/mlx5/core/ |
| H A D | mr.c | 223 struct vhost_iotlb *iotlb) in map_direct_mr() argument 239 for (map = vhost_iotlb_itree_first(iotlb, mr->start, mr->end - 1); in map_direct_mr() 255 for (map = vhost_iotlb_itree_first(iotlb, mr->start, mr->end - 1); in map_direct_mr() 304 struct vhost_iotlb *iotlb) in add_direct_chain() argument 327 err = map_direct_mr(mvdev, dmr, iotlb); in add_direct_chain() 358 static int _mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in _mlx5_vdpa_create_mr() argument 376 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; in _mlx5_vdpa_create_mr() 391 err = add_direct_chain(mvdev, ps, pe - ps, pperm, iotlb); in _mlx5_vdpa_create_mr() 400 err = add_direct_chain(mvdev, ps, pe - ps, pperm, iotlb); in _mlx5_vdpa_create_mr() 424 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_create_mr() argument [all …]
|
| H A D | mlx5_vdpa.h | 79 int mlx5_vdpa_handle_set_map(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb, 81 int mlx5_vdpa_create_mr(struct mlx5_vdpa_dev *mvdev, struct vhost_iotlb *iotlb);
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H A D | vhost_types.h | 83 struct vhost_iotlb_msg iotlb; member 92 struct vhost_iotlb_msg iotlb; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | vhost.h | 73 struct vhost_iotlb_msg iotlb; member 82 struct vhost_iotlb_msg iotlb; member
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | vhost.h | 73 struct vhost_iotlb_msg iotlb; member 82 struct vhost_iotlb_msg iotlb; member
|
| /OK3568_Linux_fs/yocto/poky/meta/recipes-devtools/qemu/qemu/ |
| H A D | CVE-2022-35414.patch | 28 IOMMUTLBEntry iotlb;
|
| /OK3568_Linux_fs/kernel/drivers/vdpa/vdpa_sim/ |
| H A D | vdpa_sim.c | 625 struct vhost_iotlb *iotlb) in vdpasim_set_map() argument 635 for (map = vhost_iotlb_itree_first(iotlb, start, last); map; in vdpasim_set_map()
|
| /OK3568_Linux_fs/kernel/drivers/vdpa/mlx5/net/ |
| H A D | mlx5_vnet.c | 1671 static int mlx5_vdpa_change_map(struct mlx5_vdpa_net *ndev, struct vhost_iotlb *iotlb) in mlx5_vdpa_change_map() argument 1682 err = mlx5_vdpa_create_mr(&ndev->mvdev, iotlb); in mlx5_vdpa_change_map() 1836 static int mlx5_vdpa_set_map(struct vdpa_device *vdev, struct vhost_iotlb *iotlb) in mlx5_vdpa_set_map() argument 1843 err = mlx5_vdpa_handle_set_map(mvdev, iotlb, &change_map); in mlx5_vdpa_set_map() 1850 return mlx5_vdpa_change_map(ndev, iotlb); in mlx5_vdpa_set_map()
|