Re: [PATCH 3/4] virtio/vdev: add ways to interact with vhost
From: Xie, Huawei <hidden>
Date: 2016-01-21 02:18:23
From: Xie, Huawei <hidden>
Date: 2016-01-21 02:18:23
On 1/11/2016 2:43 AM, Tan, Jianfeng wrote:
+ if (hw->type == VHOST_KERNEL) {
+ struct vhost_vring_file file;
+
+ file.fd = hw->backfd;
+ nvqs = data->nb_rx_queues + data->nb_tx_queues;
+ for (file.index = 0; file.index < nvqs; ++file.index) {
+ ret = vhost_kernel_ioctl(hw, VHOST_NET_SET_BACKEND, &file);
+ if (ret < 0)
+ rte_panic("VHOST_NET_SET_BACKEND failed, %s\n",
+ strerror(errno));
+ }
+ }
+
+ /* TODO: VHOST_SET_LOG_BASE */We needn't support VHOST_SET_LOG_BASE.