vdpa/ifc: support vring update after device config
authorChenbo Xia <chenbo.xia@intel.com>
Tue, 28 Jul 2020 14:32:24 +0000 (14:32 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 29 Jul 2020 22:41:23 +0000 (00:41 +0200)
commite2a1a08a763d8c20d4ac5a5be37eff88c1b9d9af
treee76d5179a9a01c9f5c12d978e98144a75715913f
parentc47463272f572a4d78109763399b5e3817b848a9
vdpa/ifc: support vring update after device config

The device ready state in vhost lib is now defined as the state
that first queue pair is ready. And kick/callfd may be updated
by QEMU when ifc device is configured.

Although now ifc driver only supports one queue pair, it still
has to update callfd when working with QEMU. This patch fixes
this vring update problem by implementing the set_vring_state
callback.

Suggested-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Signed-off-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/vdpa/ifc/base/ifcvf.h
drivers/vdpa/ifc/ifcvf_vdpa.c