vhost: check the existence of vhost_set_iotlb_callback
commit3f63b4c655047dad8bfe9443051f0bf1d56f029a
authorJason Wang <jasowang@redhat.com>
Wed, 1 Jul 2020 14:55:29 +0000 (1 22:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Jul 2020 11:57:04 +0000 (3 07:57 -0400)
tree984003ee901500fa74eb48ac42c87ac1dc25bdac
parentf19bcdfedd53ee93412d535a842a89fa27cae7f2
vhost: check the existence of vhost_set_iotlb_callback

Add the check of vhost_set_iotlb_callback
before calling

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20200701145538.22333-6-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost.c