vhost-vdpa: introduce vhost-vdpa backend
commit108a64818e69be0a97cde3838d768f2d9910c08b
authorCindy Lu <lulu@redhat.com>
Wed, 1 Jul 2020 14:55:37 +0000 (1 22:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 7 Jul 2020 11:59:51 +0000 (7 07:59 -0400)
treea60b587a2ff2b704dac731d9886bc8c30c7d0d0c
parent38140cc4d9713dc9af78090503105bf9c82b6bff
vhost-vdpa: introduce vhost-vdpa backend

Currently we have 2 types of vhost backends in QEMU: vhost kernel and
vhost-user. The above patch provides a generic device for vDPA purpose,
this vDPA device exposes to user space a non-vendor-specific configuration
interface for setting up a vhost HW accelerator, this patch set introduces
a third vhost backend called vhost-vdpa based on the vDPA interface.

Vhost-vdpa usage:

qemu-system-x86_64 -cpu host -enable-kvm \
    ......
    -netdev type=vhost-vdpa,vhostdev=/dev/vhost-vdpa-id,id=vhost-vdpa0 \
    -device virtio-net-pci,netdev=vhost-vdpa0,page-per-vq=on \

Signed-off-by: Lingshan zhu <lingshan.zhu@intel.com>
Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Signed-off-by: Cindy Lu <lulu@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20200701145538.22333-14-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
12 files changed:
configure
docs/interop/index.rst
docs/interop/vhost-vdpa.rst [new file with mode: 0644]
hw/net/vhost_net.c
hw/net/virtio-net.c
hw/virtio/Makefile.objs
hw/virtio/vhost-backend.c
hw/virtio/vhost-vdpa.c [new file with mode: 0644]
include/hw/virtio/vhost-backend.h
include/hw/virtio/vhost-vdpa.h [new file with mode: 0644]
include/hw/virtio/vhost.h
qemu-options.hx