Re: Adding another vpci
MT103/202 DIRECT WIRE TRANSFER PAYPAL TRANSFER CASHAPP TRANSFER ZELLE TRANSFER LOAN DEAL TRANSFER WISE WESTERN UNION TRANSFER BITCOIN FLASHING BANK ACCOUNT LOADING/FLASHING IBAN TO IBAN TRANSFER MONEYGRAM TRANSFER IPIP/DTC SLBC PROVIDER CREDIT CARD TOP UP DUMPS/ PINS SEPA TRANSFER WIRE TRANSFER BITCOIN TOP UP GLOBALPAY INC US SKRILL USA UNIONPAY RECEIVER Thanks. NOTE; ONLY SERIOUS / RELIABLE RECEIVERS CAN CONTACT. DM ME ON WHATSAPP +44 7529 555638 On Monday, October 30, 2023 at 1:23:36 PM UTC+1 Bharathiraja Nallathambi wrote: > Hi Moustafa Nofal, >I am trying to run two Linux inmate on Raspberry Pi 4, Can you please > help me with the root cell configuration, and two Linux inmate cell > configuration ? > > Thanks and Regards, > Bharathiraja Nallathambi > > On Wednesday, 12 January 2022 at 01:31:49 UTC+5:30 Moustafa Nofal wrote: > >> Almost everything went well, but when I started the fourth cell >> (bare-metal), I got this error, and jailhouse hangs, so I am able to >> 1- create two linux non-root cells and inter-cell communication works >> fine, and(including ethernet) >> 2- one bare-metal and linux non-root cell.(inter-cell communication works >> fine (also ethernet) >> I added one region for the newly created cell in all files with taking >> care of correct flags, enlarged the state memory region and the all-cells >> R/W memory region, and here is what I edited in the root cell: >> >> Adding virtual PCI device 00:00.0 to cell "rpi4-linux-demo-2" >> Shared memory connection established, peer cells: >> /* IVSHMEM 0001:00:00.0 (demo) */ >> .type = JAILHOUSE_PCI_TYPE_IVSHMEM, >> .domain = 1, >> .bdf = 0 << 3, >> .bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX, >> .shmem_regions_start = 0, >> .shmem_dev_id = 0, >> .shmem_peers = 4, >> .shmem_protocol = JAILHOUSE_SHMEM_PROTO_UNDEFINED, >> }, >> >> And in any other cell i change only the dev_id, so I have 0,1,2,3, the >> second PCI is an VETH and is working fine for both linux cells together, >> the problem only comes if I created the baremetal cell. >> >> >> >> >> On Tuesday, 11 January 2022 at 13:54:17 UTC+1 Moustafa Nofal wrote: >> >>> Hi, >>> Everything is working smoothly now. I have now only question regarding >>> these two memory regions: >>> >>> /* MMIO 1 (permissive) */ { >>> .phys_start = 0xfd50, >>> .virt_start = 0xfd50, >>> .size =0x1b0, >>> .flags = JAILHOUSE_MEM_READ | >>> JAILHOUSE_MEM_WRITE | >>> JAILHOUSE_MEM_IO, >>> }, >>> /* MMIO 2 (permissive) */{ >>> .phys_start = 0x6, >>> .virt_start = 0x6, >>> .size = 0x400, >>> .flags = JAILHOUSE_MEM_READ | >>> JAILHOUSE_MEM_WRITE | >>> JAILHOUSE_MEM_IO, >>> }, >>> > > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/938803bd-a8ab-452f-9027-29954f57e53an%40googlegroups.com.
Re: Adding another vpci
Hi Moustafa Nofal, I am trying to run two Linux inmate on Raspberry Pi 4, Can you please help me with the root cell configuration, and two Linux inmate cell configuration ? Thanks and Regards, Bharathiraja Nallathambi On Wednesday, 12 January 2022 at 01:31:49 UTC+5:30 Moustafa Nofal wrote: > Almost everything went well, but when I started the fourth cell > (bare-metal), I got this error, and jailhouse hangs, so I am able to > 1- create two linux non-root cells and inter-cell communication works > fine, and(including ethernet) > 2- one bare-metal and linux non-root cell.(inter-cell communication works > fine (also ethernet) > I added one region for the newly created cell in all files with taking > care of correct flags, enlarged the state memory region and the all-cells > R/W memory region, and here is what I edited in the root cell: > > Adding virtual PCI device 00:00.0 to cell "rpi4-linux-demo-2" > Shared memory connection established, peer cells: > /* IVSHMEM 0001:00:00.0 (demo) */ > .type = JAILHOUSE_PCI_TYPE_IVSHMEM, > .domain = 1, > .bdf = 0 << 3, > .bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX, > .shmem_regions_start = 0, > .shmem_dev_id = 0, > .shmem_peers = 4, > .shmem_protocol = JAILHOUSE_SHMEM_PROTO_UNDEFINED, > }, > > And in any other cell i change only the dev_id, so I have 0,1,2,3, the > second PCI is an VETH and is working fine for both linux cells together, > the problem only comes if I created the baremetal cell. > > > > > On Tuesday, 11 January 2022 at 13:54:17 UTC+1 Moustafa Nofal wrote: > >> Hi, >> Everything is working smoothly now. I have now only question regarding >> these two memory regions: >> >> /* MMIO 1 (permissive) */ { >> .phys_start = 0xfd50, >> .virt_start = 0xfd50, >> .size =0x1b0, >> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE >> | >> JAILHOUSE_MEM_IO, >> }, >> /* MMIO 2 (permissive) */{ >> .phys_start = 0x6, >> .virt_start = 0x6, >> .size = 0x400, >> .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE >> | >> JAILHOUSE_MEM_IO, >> }, >> >>> -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/ce8a9fdf-1316-41d3-be24-d3ab2dbabb95n%40googlegroups.com.
Re: Adding another vpci
Almost everything went well, but when I started the fourth cell (bare-metal), I got this error, and jailhouse hangs, so I am able to 1- create two linux non-root cells and inter-cell communication works fine, and(including ethernet) 2- one bare-metal and linux non-root cell.(inter-cell communication works fine (also ethernet) I added one region for the newly created cell in all files with taking care of correct flags, enlarged the state memory region and the all-cells R/W memory region, and here is what I edited in the root cell: Adding virtual PCI device 00:00.0 to cell "rpi4-linux-demo-2" Shared memory connection established, peer cells: /* IVSHMEM 0001:00:00.0 (demo) */ .type = JAILHOUSE_PCI_TYPE_IVSHMEM, .domain = 1, .bdf = 0 << 3, .bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX, .shmem_regions_start = 0, .shmem_dev_id = 0, .shmem_peers = 4, .shmem_protocol = JAILHOUSE_SHMEM_PROTO_UNDEFINED, }, And in any other cell i change only the dev_id, so I have 0,1,2,3, the second PCI is an VETH and is working fine for both linux cells together, the problem only comes if I created the baremetal cell. On Tuesday, 11 January 2022 at 13:54:17 UTC+1 Moustafa Nofal wrote: > Hi, > Everything is working smoothly now. I have now only question regarding > these two memory regions: > > /* MMIO 1 (permissive) */ { > .phys_start = 0xfd50, > .virt_start = 0xfd50, > .size =0x1b0, > .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | > JAILHOUSE_MEM_IO, > }, > /* MMIO 2 (permissive) */{ > .phys_start = 0x6, > .virt_start = 0x6, > .size = 0x400, > .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | > JAILHOUSE_MEM_IO, > }, > >> >>> >>> -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/850100c3-90eb-4a87-82c7-9bd84a8fecd9n%40googlegroups.com.
Re: Adding another vpci
Hi, Everything is working smoothly now. I have now only question regarding these two memory regions: /* MMIO 1 (permissive) */ { .phys_start = 0xfd50, .virt_start = 0xfd50, .size =0x1b0, .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_IO, }, /* MMIO 2 (permissive) */{ .phys_start = 0x6, .virt_start = 0x6, .size = 0x400, .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_IO, }, > >> >> -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/8fc34409-ec7f-4306-9f97-3bb380f7c08dn%40googlegroups.com.
Re: Adding another vpci
The device is virtual pci, I was missing this JAILHOUSE_SHMEM_NET_REGIONS. I added it on a reserved place, away from other memory regions and its and another virtual ethernet is added. I have another question regarding particularly these two memroy regions, /* MMIO 1 (permissive) */ { .phys_start = 0xfd50, .virt_start = 0xfd50, .size =0x1b0, .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_IO, }, /* MMIO 2 (permissive) */{ .phys_start = 0x6, .virt_start = 0x6, .size = 0x400, .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_IO, }, In my system it points to pcie device and RAM(non-reserved for jailhouse). What are these regions? and are they related to JAILHOUSE_SHMEM_NET_REGIONS, because what I read is that this command reserves four memory regions. One more question, on the second linux cell configuration, I added the memory region with correct flags, that was added on the root cell and I am trying to configure the pci communication. On root cell: /* IVSHMEM 0001:00:02.0 (networking) */ { .type = JAILHOUSE_PCI_TYPE_IVSHMEM, .domain = 2, .bdf = 2 << 3, .bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX, .shmem_regions_start = 12, .shmem_dev_id = 0, .shmem_peers = 2, .shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH, }, and JAILHOUSE_SHMEM_NET_REGIONS(0x3000, 0), On 2nd Linux cell: { /* IVSHMEM 00:02.0 (networking) */ .type = JAILHOUSE_PCI_TYPE_IVSHMEM, .bdf = 2 << 3, .bar_mask = JAILHOUSE_IVSHMEM_BAR_MASK_INTX, .shmem_regions_start = 6, .shmem_dev_id = 1, .shmem_peers = 2, .shmem_protocol = JAILHOUSE_SHMEM_PROTO_VETH, }, and JAILHOUSE_SHMEM_NET_REGIONS(0x3000, 1), I followed the documentation, the .bdf is the same, only 2 peers , and I put also the correct memory region. However, no ethernet is added on the second non-root Linux Kind regards Moustafa Noufale On Tuesday, 11 January 2022 at 10:38:52 UTC+1 Henning Schild wrote: > Am Mon, 10 Jan 2022 13:31:16 -0800 (PST) > schrieb Moustafa Nofal : > > > Hi, > > I intend to add another Linux on Raspberry Pi4. So, I added also a > > memory region on rpi4.c and extended the size of mem_regions by, and > > managed to get working. I added a pci device, and extended the array > > by one, and the pci device is added, but without kernel driver in > > use? So, how to add the driver to it? > > > What kind of device is it? The kernel should simply find it and bind > any driver that fits, in case it has one that does. > > If it is a virtual network device based on ivshmem2 you need to add the > pci device, and multiple memory regions for it > JAILHOUSE_SHMEM_NET_REGIONS for the driver to pick it up correctly you > need to set the shmem_protocol of the pci device to > JAILHOUSE_SHMEM_PROTO_VETH and set the index shmem_regions_start to > your newly added memory regions. > > regards, > Henning > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/84ebb12e-49ba-49ed-9719-063064e3c8e6n%40googlegroups.com.
Re: Adding another vpci
Am Mon, 10 Jan 2022 13:31:16 -0800 (PST) schrieb Moustafa Nofal : > Hi, > I intend to add another Linux on Raspberry Pi4. So, I added also a > memory region on rpi4.c and extended the size of mem_regions by, and > managed to get working. I added a pci device, and extended the array > by one, and the pci device is added, but without kernel driver in > use? So, how to add the driver to it? What kind of device is it? The kernel should simply find it and bind any driver that fits, in case it has one that does. If it is a virtual network device based on ivshmem2 you need to add the pci device, and multiple memory regions for it JAILHOUSE_SHMEM_NET_REGIONS for the driver to pick it up correctly you need to set the shmem_protocol of the pci device to JAILHOUSE_SHMEM_PROTO_VETH and set the index shmem_regions_start to your newly added memory regions. regards, Henning -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jailhouse-dev/2022003848.5abbc20e%40md1za8fc.ad001.siemens.net.