vduse: validate block features only with block devices
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Tue, 9 Jan 2024 11:10:23 +0000 (12:10 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Mar 2024 12:18:35 +0000 (08:18 -0400)
commita115b5716fc9a64652aa9cb332070087178ffafa
tree0537b3fec233913f7a6574eb74563e010d834214
parent5da7137de79ca6ffae3ace77050588cdf5263d33
vduse: validate block features only with block devices

This patch is preliminary work to enable network device
type support to VDUSE.

As VIRTIO_BLK_F_CONFIG_WCE shares the same value as
VIRTIO_NET_F_HOST_TSO4, we need to restrict its check
to Virtio-blk device type.

Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Xie Yongji <xieyongji@bytedance.com>
Reviewed-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Message-Id: <20240109111025.1320976-2-maxime.coquelin@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_user/vduse_dev.c