]> git.baikalelectronics.ru Git - kernel.git/commit
vhost/vdpa: use get_config_size callback in vhost_vdpa_config_validate()
authorStefano Garzarella <sgarzare@redhat.com>
Mon, 15 Mar 2021 16:34:45 +0000 (17:34 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 3 May 2021 08:55:53 +0000 (04:55 -0400)
commit7e5a0b2ba8eacce884b7d343cccd3463e3d2b69a
tree586e6c05146827672d64c6ab94ac0442c809f8f0
parent06099aa5a55320a97f76f695e47d85d7be3216b3
vhost/vdpa: use get_config_size callback in vhost_vdpa_config_validate()

Let's use the new 'get_config_size()' callback available instead of
using the 'virtio_id' to get the size of the device config space.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Link: https://lore.kernel.org/r/20210315163450.254396-10-sgarzare@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
drivers/vhost/vdpa.c