diff options
author | Cindy Lu | 2020-07-01 16:55:38 +0200 |
---|---|---|
committer | Michael S. Tsirkin | 2020-07-07 13:59:51 +0200 |
commit | 1e0a84ea49b68b7cf60e229d91fd16333e0b7a90 (patch) | |
tree | 127b20c497015a7c01686fb90525c8b73f640dde /include/net | |
parent | vhost-vdpa: introduce vhost-vdpa backend (diff) | |
download | qemu-1e0a84ea49b68b7cf60e229d91fd16333e0b7a90.tar.gz qemu-1e0a84ea49b68b7cf60e229d91fd16333e0b7a90.tar.xz qemu-1e0a84ea49b68b7cf60e229d91fd16333e0b7a90.zip |
vhost-vdpa: introduce vhost-vdpa net client
This patch set introduces a new net client type: vhost-vdpa.
vhost-vdpa net client will set up a vDPA device which is specified
by a "vhostdev" parameter.
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-15-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>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/vhost-vdpa.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/net/vhost-vdpa.h b/include/net/vhost-vdpa.h new file mode 100644 index 0000000000..45e34b7cfc --- /dev/null +++ b/include/net/vhost-vdpa.h @@ -0,0 +1,22 @@ +/* + * vhost-vdpa.h + * + * Copyright(c) 2017-2018 Intel Corporation. + * Copyright(c) 2020 Red Hat, Inc. + * + * This work is licensed under the terms of the GNU GPL, version 2 or later. + * See the COPYING file in the top-level directory. + * + */ + +#ifndef VHOST_VDPA_H +#define VHOST_VDPA_H + +#define TYPE_VHOST_VDPA "vhost-vdpa" + +struct vhost_net *vhost_vdpa_get_vhost_net(NetClientState *nc); +uint64_t vhost_vdpa_get_acked_features(NetClientState *nc); + +extern const int vdpa_feature_bits[]; + +#endif /* VHOST_VDPA_H */ |