summaryrefslogtreecommitdiff
path: root/drivers/vdpa/ifcvf/ifcvf_base.h
diff options
context:
space:
mode:
authorZhu Lingshan <lingshan.zhu@intel.com>2021-03-17 17:49:32 +0800
committerMichael S. Tsirkin <mst@redhat.com>2021-05-03 04:55:52 -0400
commit1d895a68085b28d098893570b024229aacc9a057 (patch)
tree3e580359a4e47ca90a94a010967d30ad03bb3fbc /drivers/vdpa/ifcvf/ifcvf_base.h
parent69d00d9858c7451a1e3fc556ece211533fb85b64 (diff)
downloadlwn-1d895a68085b28d098893570b024229aacc9a057.tar.gz
lwn-1d895a68085b28d098893570b024229aacc9a057.zip
vDPA/ifcvf: verify mandatory feature bits for vDPA
vDPA requres VIRTIO_F_ACCESS_PLATFORM as a must, this commit examines this when set features. Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com> Acked-by: Jason Wang <jasowang@redhat.com> Link: https://lore.kernel.org/r/20210317094933.16417-7-lingshan.zhu@intel.com Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/ifcvf/ifcvf_base.h')
-rw-r--r--drivers/vdpa/ifcvf/ifcvf_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/vdpa/ifcvf/ifcvf_base.h b/drivers/vdpa/ifcvf/ifcvf_base.h
index dbb8c10aa3b1..f77239fc1644 100644
--- a/drivers/vdpa/ifcvf/ifcvf_base.h
+++ b/drivers/vdpa/ifcvf/ifcvf_base.h
@@ -123,6 +123,7 @@ void io_write64_twopart(u64 val, u32 *lo, u32 *hi);
void ifcvf_reset(struct ifcvf_hw *hw);
u64 ifcvf_get_features(struct ifcvf_hw *hw);
u64 ifcvf_get_hw_features(struct ifcvf_hw *hw);
+int ifcvf_verify_min_features(struct ifcvf_hw *hw, u64 features);
u16 ifcvf_get_vq_state(struct ifcvf_hw *hw, u16 qid);
int ifcvf_set_vq_state(struct ifcvf_hw *hw, u16 qid, u16 num);
struct ifcvf_adapter *vf_to_adapter(struct ifcvf_hw *hw);