On 01.06.21 12:40, along li wrote: > Is UART different from other devices? I see some uart-8250.c code. > The uart is especially treated ? >
Only in so far as the hypervisor may use a UART for its own outputs. But there is no special handling of it when it comes to guest accesses. That's also why you may get a mess on the console when both the hypervisor and a guest write to the same UART. > Will some demos which show how to partition network devices or some > other devices into inmates be done? > I have tryed in rpi4b. like zynqmp-zcu102-linux-demo.c , I added > the mem regions and irq. But, the network cann't seen in inmate. > You will have to adjust the inmate dts/dtb as well in order to make the device visible. That is not done automatically by the Jailhouse runtime. Jan > > 在2021年5月14日星期五 UTC+8 下午6:10:37<[email protected]> 写道: > > On 14.05.21 05:08, along li wrote: > > Dear community, > > > > For X86 platform, the tutorial pdf talks some about how to > partition > > pci device into none-root cells. > > tutorial: > > > > https://events.static.linuxfound.org/sites/events/files/slides/ELCE2016-Jailhouse-Tutorial.pdf > > <https://events.static.linuxfound.org/sites/events/files/slides/ELCE2016-Jailhouse-Tutorial.pdf> > > > > > <https://events.static.linuxfound.org/sites/events/files/slides/ELCE2016-Jailhouse-Tutorial.pdf > > <https://events.static.linuxfound.org/sites/events/files/slides/ELCE2016-Jailhouse-Tutorial.pdf>> > > > > > But how to do this in arm64 platforms, there is no document. > > > > Well how to do this, Are there some configuration demos ? > > > > Plenty, though understanding the details requires a bit knowledge about > the respective platforms. If you look at > configs/arm64/zynqmp-zcu102-linux-demo.c, e.g., you can see that it > gets > a UART assigned by handing over the MMIO region and (IIRC) GIC IRQ 54. > But, as I already explained, there can be more complex challenges when > you also need to enable / clock the respective device, and those > controls are shared with the root cell. > > Jan > > -- > Siemens AG, T RDA IOT > 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 [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jailhouse-dev/0520cade-198a-4f89-95e4-cd5fbc6c1ae2n%40googlegroups.com > <https://groups.google.com/d/msgid/jailhouse-dev/0520cade-198a-4f89-95e4-cd5fbc6c1ae2n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- Siemens AG, T RDA IOT 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/47600e22-8b78-f08d-0d75-94df09a3de64%40siemens.com.
