vhost: fail device start if iotlb update fails
authorPrasad Pandit <pjp@fedoraproject.org>
Thu, 7 Nov 2024 11:32:47 +0000 (17:02 +0530)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 26 Nov 2024 22:18:07 +0000 (17:18 -0500)
commit571bdc97b83646dfd3746ec56fb2f70bca55b9a2
tree3c63d41bab31f4674fa2ff7d47e8e1f4c4946bfc
parent5d525294626ebdc2741c19167217ec79a6c2cc08
vhost: fail device start if iotlb update fails

While starting a vhost device, updating iotlb entries
via 'vhost_device_iotlb_miss' may return an error.

  qemu-kvm: vhost_device_iotlb_miss:
    700871,700871: Fail to update device iotlb

Fail device start when such an error occurs.

Signed-off-by: Prasad Pandit <pjp@fedoraproject.org>
Message-Id: <20241107113247.46532-1-ppandit@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
hw/virtio/vhost.c