On 11.12.22 17:06, 张家铭 wrote: > Hi, > > Recently, I have used inmate-demo(inmates/demos/ivshmem-demo.c) and > ivshmem-demo(tools/ivshmem-demo.c) on rpi4 to study how to communicate > between two cells. I have following problems: > > 1. I found this result, However, I'm not sure it is correct. The > inmate-demo's Privileged Control=0 and the ivshmem-demo in root-cell, > Privileged Control=1 ? > > 2. In ivshmem-demo. If I want to change the Privileged Control, What > should I do? What means, how to open/close one-shot interrupt mode? >
The Privileged Control register is only used by the UIO driver under Linux. It saves one extra exit on interrupt arrival in the UIO kernel driver to mask the interrupt line until unprivileged userspace had a chance to react to the event. In the bare-metal demo, you don't need this feature because there is no privilege separation between a driver and an application. Jan -- Siemens AG, Technology 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/4d5e6745-e79a-67fe-bcc9-6e0e3a0d11ba%40siemens.com.
