- u64 iova, u64 size)This should be reorder to check for (!iotlb) before use at `asid =
+static int vhost_vdpa_unmap(struct vhost_vdpa *v,
+ struct vhost_iotlb *iotlb,
+ u64 iova, u64 size)
{
struct vdpa_device *vdpa = v->vdpa;
const struct vdpa_config_ops *ops = vdpa->config;
+ u32 asid = (iotlb);
+
+ if (!iotlb)
+ return -EINVAL;
iotlb_to_asid()`, isn't it?
Thanks!