virtio/user: remove leftover kernel vhost references

We don't support the kernel vhost. Vhost-SCSI is not even
fully implemented in Linux, so there's no point trying.

Change-Id: Ie564d46c497718081dd2a5c28829fdcf88e1c0a0
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/417455
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2018-07-02 11:33:33 +02:00 committed by Jim Harris
parent f2da539dbc
commit f0501959a0
2 changed files with 2 additions and 5 deletions

View File

@ -365,8 +365,8 @@ virtio_user_del_queue(struct virtio_dev *vdev, struct virtqueue *vq)
* For modern devices, set queue desc, avail, used in PCI bar to 0, * For modern devices, set queue desc, avail, used in PCI bar to 0,
* not see any more behavior in QEMU. * not see any more behavior in QEMU.
* *
* Here we just care about what information to deliver to vhost-user * Here we just care about what information to deliver to vhost-user.
* or vhost-kernel. So we just close ioeventfd for now. * So we just close ioeventfd for now.
*/ */
struct virtio_user_dev *dev = vdev->ctx; struct virtio_user_dev *dev = vdev->ctx;

View File

@ -71,10 +71,8 @@ enum vhost_user_request {
struct virtio_user_backend_ops; struct virtio_user_backend_ops;
struct virtio_user_dev { struct virtio_user_dev {
/* for vhost_user backend */
int vhostfd; int vhostfd;
/* for both vhost_user and vhost_kernel */
int callfds[SPDK_VIRTIO_MAX_VIRTQUEUES]; int callfds[SPDK_VIRTIO_MAX_VIRTQUEUES];
int kickfds[SPDK_VIRTIO_MAX_VIRTQUEUES]; int kickfds[SPDK_VIRTIO_MAX_VIRTQUEUES];
uint32_t queue_size; uint32_t queue_size;
@ -101,6 +99,5 @@ struct vhost_user_config {
}; };
extern struct virtio_user_backend_ops ops_user; extern struct virtio_user_backend_ops ops_user;
extern struct virtio_user_backend_ops ops_kernel;
#endif #endif