2018年8月17日金曜日 1時53分29秒 UTC+9 J. Kiszka: > On 2018-08-16 18:25, Chung-Fan Yang wrote: > > Hello, > > > > I would like some help. I am trying to accomplish a root <-> non-root cell > > communication. > > I followed README.jailhouse in > > https://github.com/henning-schild-work/ivshmem-guest-code to build to tools > > for the root side and fired the ivshmem-demo as the non-root cell. > > > > I can see the interrupt of virtual pci interface is enumerated in > > /proc/interrupts > > 34: 0 0 0 0 0 0 > > 0 0 0 IR-PCI-MSI 245760-edge uio_ivshmem > > > > > > I am able to send interrupt from root cell to non-root cell. I can see > > responses from the debug console. Also, I can read the memory data in the > > root cell. > > But I am not able to receive the interrupts from non-root cell. using the > > uio_read tool, it will hang for ever, and the count in /proc/interrupts > > wouldn't increase. > > > > I am using the head of the jailhouse branch of ivshmem-guest-code. > > The kernel version is 4.13, and 4.9, both are not working. > > > > Are you running on real hardware or in qemu/kvm? For real hw, if there > are two IOMMU units, try assigning the ivshmem PCI device to the other > (likely unit 1).
This is exactly the reason it is not working. I am using real hw with 2 iommu unit. After setting iommu=1 for the virtual device it worked. Thank you guys, Yang > > Jan > > -- > Siemens AG, Corporate Technology, CT RDA IOT SES-DE > Corporate Competence Center Embedded Linux -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails from it, send an email to jailhouse-dev+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.