Hi Jan,
  We are trying to establish the connection between root cell to non-root cell 
on x86 using ivshmem-net driver.


we did below modifications in root cell and non root cell configurations.

      // PCI device
                {
                        .type = JAILHOUSE_PCI_TYPE_IVSHMEM,
                        .domain = 0x0,
                        .bdf = 0x0e << 3,
                        .bar_mask = {
                                0xffffff00, 0xffffffff, 0x00000000,
                                0x00000000, 0xffffffe0, 0xffffffff,
                        },
                        .num_msix_vectors = 1,
                        .shmem_region = 3,
                        .shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH,
                },

                /* MemRegion: 404100000 : IVSHMEM :JH-added */
                {
                        .phys_start = 0x404100000,
                        .virt_start = 0x404100000,
                        .size = 0x100000,
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                                 JAILHOUSE_MEM_ROOTSHARED,
                },


After adding above changes, we are able to see the virtual network interface in 
non-root cell but it is not working(ping is not happening and we are not able 
to see the interrupts).

I am adding below logs for your reference.


[root@localhost ~]# cat /proc/iomem
.....
  0000000100000000-00000001000000ff : ivshmem-net
0000000100000100-000000010000011f : 0000:00:0e.0
0000000404100000-00000004041fffff : ivshmem-net
.....

[root@localhost ~]# cat /proc/interrupts
           CPU0       CPU1
  4:       1271          0   IO-APIC-4-fasteoi   serial
 24:        404          0   PCI-MSI-524288-edge      enp1s0f0
 25:          0          0   PCI-MSI-229376-edge      ivshmem-net[0000:00:0e.0]


[rooot@localhost ~]# lspci -s 0e -vvv
00:0e.0 Unassigned class [ff01]: Red Hat, Inc Inter-VM shared memory
        Subsystem: Red Hat, Inc Inter-VM shared memory
        Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Region 0: Memory at 100000000 (64-bit, non-prefetchable) [size=256]
        Region 4: Memory at 100000100 (64-bit, non-prefetchable) [size=32]
        Capabilities: [50] MSI-X: Enable+ Count=1 Masked-
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00000010
        Kernel driver in use: ivshmem-net
lspci: Unable to load libkmod resources: error -12


[root@localhost ~]# ifconfig -a
enp0s14: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 16384
        inet 192.168.1.55  netmask 255.255.0.0  broadcast 192.168.255.255
        ether 9a:28:41:e8:3b:14  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

enp1s0f0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.35  netmask 255.255.0.0  broadcast 192.168.255.255
        inet6 fe80::21b:78ff:fe56:abec  prefixlen 64  scopeid 0x20<link>
        ether 00:1b:78:56:ab:ec  txqueuelen 1000  (Ethernet)
        RX packets 457  bytes 46827 (45.7 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 7  bytes 596 (596.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 11  memory 0xc72a0000-c72c0000  

Can you please help us to resolve.

we have below points which we need some input 

a. we want to know are we missing any configuration? 
b. we used external NIC and configured to non rootcell. should we assign any 
physical NIC to non rootcell to make virtual network interface working?
c.we didn't see that increment in interrupt count. Are we missing any thing 
here?

Regards,
Anil 




-- 
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.

Reply via email to