vDPA: only report driver features if FEATURES_OK is set
authorZhu Lingshan <lingshan.zhu@intel.com>
Thu, 29 Sep 2022 01:45:51 +0000 (09:45 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 8 Oct 2022 00:00:42 +0000 (20:00 -0400)
commitc6dac2ecfa36a73ffec65a869f34274f08ccbd4f
tree4df764840eadd8fd8147c7eb9925c3216dbe5407
parent228565100def593df0f26ee07d5fb810039454d5
vDPA: only report driver features if FEATURES_OK is set

This commit reports driver features to user space
only after FEATURES_OK is features negotiation is done.

Signed-off-by: Zhu Lingshan <lingshan.zhu@intel.com>
Message-Id: <20220929014555.112323-3-lingshan.zhu@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa.c