MCPcopy Create free account
hub / github.com/F-Stack/f-stack / vhost_user_iotlb_miss

Function vhost_user_iotlb_miss

dpdk/lib/vhost/vhost_user.c:3313–3339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3311}
3312
3313static int
3314vhost_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
3341int
3342rte_vhost_backend_config_change(int vid, bool need_reply)

Callers

nothing calls this directly

Calls 1

send_vhost_messageFunction · 0.85

Tested by

no test coverage detected