vhost/vdpa: Remove the restriction that only supports virtio-net devices
authorXie Yongji <xieyongji@bytedance.com>
Mon, 15 Mar 2021 16:34:46 +0000 (17:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:53 +0000 (04:55 -0400)
commit9d6d97bff7909910af537fd3903d05338adaaefa
tree339bf4ab43a379a78a5708a70f801113afa46dc7
parentd6d8bb92fdde6390037bf9da174ed3ab551c04d7
vhost/vdpa: Remove the restriction that only supports virtio-net devices

Since the config checks are done by the vDPA drivers, we can remove the
virtio-net restriction and we should be able to support all kinds of
virtio devices.

<linux/virtio_net.h> is not needed anymore, but we need to include
<linux/slab.h> to avoid compilation failures.

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-11-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/vdpa.c