Hi Jan
Yes the kernel support CONFIG_PCI_HOST_GENERIC=y option

I added some other options in the kernel config and now it works fine. To
be more specific:  CONFIG_USELIB=y  and CONFIG_ARM_PSCI=y
not sure how they are related but anyway the pci devices show up fine.

Thanks for the help



On Wed, May 10, 2023 at 7:32 AM Jan Kiszka <[email protected]> wrote:

> On 08.05.23 03:53, Kurt Zou wrote:
> > Hi All,
> > I'm trying to bring up a ivshmem net device on a cortex-A7 platform.
> >
> > After enabling jailhouse, virtual PCI devices seem to be added
> > successfully, but with "lspci" or "/sys/bus/pci/devices", I didn't see
> > anything there. Am I missing something? I assume that pci devices (even
> > virtual) should be able to show up in system.
> >
> > Here's the debug information:
> >
> > root@demo:~# jailhouse enable /etc/jailhouse/demo.cell
> >
> > Initializing Jailhouse hypervisor v0.12 on CPU 0
> > Code location: 0xf0000040
> > Page pool usage after early setup: mem 37/1770, remap 0/131072
> > Initializing processors:
> >  CPU 0... OK
> >  CPU 1... OK
> >  CPU 2... OK
> >  CPU 3... OK
> > Initializing unit: irqchip
> > Initializing unit: PCI
> > Adding virtual PCI device 00:00.0 to cell "demo"
> > Adding virtual PCI device 00:01.0 to cell "demo"
> > Page pool usage after late setup: mem 57/1770, remap 5/131072
> > Activating hypervisor
> > root@demo:~# lspci
> > root@demo:~# ifconfig
> > lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
> >         inet 127.0.0.1  netmask 255.0.0.0
> >         loop  txqueuelen 1000  (Local Loopback)
> >         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
> >
>
> Is the virtual PCI host controller visible in the root cell's device
> tree (/sys/firmware/devicetree/...)? Does the root Linux kernel support
> it (CONFIG_PCI_HOST_GENERIC=y, IIRC)? Do you have any error reporting on
> the kernel log of the root cell?
>
> Jan
>
> --
> Siemens AG, Technology
> 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/CAC5TEnHad5oZoP3H2TxVKPmeJ1pW%3DBAMQJFRGwZTrST2oQh7KQ%40mail.gmail.com.

Reply via email to