| 3311 | } |
| 3312 | |
| 3313 | static int |
| 3314 | vhost_user_iotlb_miss(struct virtio_net *dev, uint64_t iova, uint8_t perm) |
| 3315 | { |
| 3316 | int ret; |
| 3317 | struct vhu_msg_context ctx = { |
| 3318 | .msg = { |
| 3319 | .request.backend = VHOST_USER_BACKEND_IOTLB_MSG, |
| 3320 | .flags = VHOST_USER_VERSION, |
| 3321 | .size = sizeof(ctx.msg.payload.iotlb), |
| 3322 | .payload.iotlb = { |
| 3323 | .iova = iova, |
| 3324 | .perm = perm, |
| 3325 | .type = VHOST_IOTLB_MISS, |
| 3326 | }, |
| 3327 | }, |
| 3328 | }; |
| 3329 | |
| 3330 | ret = send_vhost_message(dev, dev->backend_req_fd, &ctx); |
| 3331 | if (ret < 0) { |
| 3332 | VHOST_LOG_CONFIG(dev->ifname, ERR, |
| 3333 | "failed to send IOTLB miss message (%d)\n", |
| 3334 | ret); |
| 3335 | return ret; |
| 3336 | } |
| 3337 | |
| 3338 | return 0; |
| 3339 | } |
| 3340 | |
| 3341 | int |
| 3342 | rte_vhost_backend_config_change(int vid, bool need_reply) |
nothing calls this directly
no test coverage detected