Actually, it has turned out that all I needed to do to get the network access for the 2nd NR-Linix cell was to assign IPs for different subnets to my root<->non-root VNICs pairs, e.g. 192.168.0.* to one and 192.168.1.* to the other.
Best Regards, Yelena On Thursday, March 16, 2023 at 4:07:30 PM UTC Yelena Konyukh wrote: > > Hi All, > > I would be very grateful for any comments on the issue described below: > > I have Jailhouse setup on ARM64 platform with Zynq SoC, where I have 2 > Non-Root Linux cells. I need to provide network access for both NR-Linux > cells. > To achieve that, I have configured the root cell to have 2 VNICs - one for > NR-Linux cell 1 (on .bdf 0<<3) and one for NR-Linux cell 2 (on .bdf << 1). > > While network comms between the root and the cell 1 work fine (cells ping > each other, cell 1 can use the root as a router and get external network > access), network comms between the root and cell 2 do not work. > > Initially, I expected it to be an issue with the VNIC's interrupt in cell > 2. That does not seem to be the case. When cell 2 starts ( Linux is > booted), the count on the corresponding IRQ line is 6. What I've found so > far, is that when I ping the cell 2 from the root, no ivshm_net_xmit() is > invoked on the root as a result of the ping. > > I expected ivshm_net_xmit() to be invoked, because it looks to me this is > how an interrupt is raised to a NR-Linux cell: > ivshm_net_xmit()->ivshm_net_notify_tx()->write to the relevant doorbell > register->an interrupt is raised on the peer. > > Funnily enough, if I move my NR-Linux cell 2 to use .bdf 0, rather than > 1<<3, or leave it to use 1<<3, but have only one VNIC in the root, then my > cell 2 gets network access... > > Has anyone seen anything similar? > Or could give any pointers of what might be going wrong? > Has anyone managed to have network access for > 1 NR-Linux cell on ARM64? > > I could share my code and logs, if that could help anyone help me :). > > Thank you very much in advance. > > Best Regards, > > Yelena > > -- 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/69128f39-6571-4eaa-8039-e7fe39afb7ecn%40googlegroups.com.
