Hi,

I have tried to figure it and resolved the "PCI devices not showing", and 
devices are showing now(`c` and `d`):

```
Activating hypervisor
[   73.183592] pci-host-generic fc000000.pci: host bridge /pci@0 ranges:
[   73.199132] pci-host-generic fc000000.pci:   MEM 0xfc100000..0xfc103fff 
-> 0xfc100000
[   73.208489] pci-host-generic fc000000.pci: ECAM at [mem 
0xfc000000-0xfc0fffff] for [bus 00]
[   73.218012] pci-host-generic fc000000.pci: PCI host bridge to bus 0001:00
[   73.226675] pci_bus 0001:00: root bus resource [bus 00]
[   73.233239] pci_bus 0001:00: root bus resource [mem 
0xfc100000-0xfc103fff]
[   73.245689] pci 0001:00:0c.0: [110a:4106] type 00 class 0xffc002
[   73.255187] pci 0001:00:0c.0: reg 0x10: [mem 0x00000000-0x00000fff]
[   73.268934] pci 0001:00:0d.0: [110a:4106] type 00 class 0xffc003
[   73.275920] pci 0001:00:0d.0: reg 0x10: [mem 0x00000000-0x00000fff]
[   73.333292] pci 0001:00:0c.0: BAR 0: assigned [mem 0xfc100000-0xfc100fff]
[   73.350022] pci 0001:00:0d.0: BAR 0: assigned [mem 0xfc101000-0xfc101fff]
[   73.365843] The Jailhouse is opening.
[   73.379727] xilinx-dp-snd-card 
fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: failed to init link 
xilinx-dp0: -517
```
but after doing this,

```
root@zcu102-zynqmp:~# modprobe uio_ivshmem

root@zcu102-zynqmp:~# echo "110a 4106 110a 4106 ffc002 ffffff" > 
/sys/bus/pci/drivers/uio_ivshmem/new_id
[  448.468251] uio_ivshmem 0001:00:0c.0: enabling device (0000 -> 0002)
[  448.479735] uio_ivshmem 0001:00:0c.0: state_table at 0x0000000050400000, 
size 0x0000000000001000
[  448.487710] uio_ivshmem 0001:00:0c.0: rw_section at 0x0000000050401000, 
size 0x00000000000df000
[  448.504564] xilinx-dp-snd-card 
fd4a0000.zynqmp-display:zynqmp_dp_snd_card: ASoC: failed to init link 
xilinx-dp0: -517

root@zcu102-zynqmp:~# ./virtio-ivshmem-block /dev/uio0 disk.img
./virtio-ivshmem-block: cannot open /sys/class/uio/uio0/maps/map2/size: No 
such file or directory
```
It's still not able to detect the required device.

Also,

```
root@zcu102-zynqmp:~# lspci -k
00:0d.0 Class ffc0: 110a:4106
00:0c.0 Class ffc0: 110a:4106 uio_ivshmem
```

Please let me know what I am missing.


Thanks and Regards,
Anmol

On Thursday, January 6, 2022 at 1:23:51 PM UTC+5:30 Jan Kiszka wrote:

> On 05.01.22 22:22, Anmol wrote:
> > Hi Moustafa,
> >
> > I already added `CONFIG_UIO_IVSHMEM=y` in my kernel configuration and
> > can easily load `uio_ivshmem` on the target image.
> >
> > Also, I am trying `virtio-ivshmem-console` so, is there any need for
> > `CONFIG_IVSHMEM_NET=y` to be added in the defconfig?
> >
>
> To run the virtio-ivshmem-console backend process, you just need the
> uio_ivshmem driver. Make sure it detected the required device properly
> (kernel log), then virtio-ivshmem-console will also find the needed uio
> sysfs entries.
>
> Jan
>

-- 
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/c38e6f54-e0a1-4404-a727-0a40ba5c8a49n%40googlegroups.com.

Reply via email to