Hi Oleksandr,
Finally I am getting around Xen grants and haven't got a running setup yet. There are few questions I have at the moment:
- Xen's libxl_arm.c creates the iommu nodes only if backend isn't in Dom0. Why are we forcing it this way ?
I am not running my backend in a separate dom as of now, as they need to share a unix socket with dom0 (with vhost-user-fronend (our virtio-disk counterpart)) for vhost-user protocol and am not sure how to set it up. Maybe I need to use "channel" ? or something else ?
- I tried to hack it up, to keep backend in Dom0 only and create the iommu nodes unconditionally and the guest kernel is crashing in drivers/iommu/iommu.c:332
iommu_dev = ops->probe_device(dev);
Since grant_dma_iommu_ops have all the fields set to NULL.
- Anything else you might want to share ?