On Fri, Aug 20, 2021 at 5:53 PM Jan Kiszka <[email protected]> wrote: > > On 20.08.21 14:02, Anmol wrote: > > Hello, > > > > On Thu, Aug 19, 2021 at 7:22 PM Jan Kiszka <[email protected]> wrote: > >> > >> On 19.08.21 15:42, Anmol wrote: > >>> Hello, > >>> > >>> On Sat, Aug 14, 2021 at 8:20 PM Jan Kiszka <[email protected]> wrote: > >>>> > >>>> On 11.08.21 20:36, Anmol wrote: > >>>> > >>>> The echo should not show any response, but when you do an lspci -k, you > >>>> should see that the targeting devices are now driven by uio_ivshmem. If > >>>> not, the IDs might not be correct yet, or the devices are missing. > >>>> > >>>> Also check the kernel console of the cell where you issued this echo. > >>>> > >>> > >>> I have added the PCI devices to both the cells and set the > >>> `.shmem_dev_id` accordingly, please have a look at the cell config. > >>> files I have sent. > >>> > >>> here's the `lspci -k` output: > >>> qemux86-64:~# lspci -k > >>> 00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM > >>> Controller > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> 00:01.0 VGA compatible controller: Red Hat, Inc. Virtio GPU (rev 01) > >>> Subsystem: Red Hat, Inc. Virtio GPU > >>> Kernel driver in use: virtio-pci > >>> 00:02.0 Ethernet controller: Red Hat, Inc. Virtio network device > >>> Subsystem: Red Hat, Inc. Virtio network device > >>> Kernel driver in use: virtio-pci > >>> 00:03.0 Unclassified device [00ff]: Red Hat, Inc. Virtio RNG > >>> Subsystem: Red Hat, Inc. Virtio RNG > >>> Kernel driver in use: virtio-pci > >>> 00:04.0 SCSI storage controller: Red Hat, Inc. Virtio block device > >>> Subsystem: Red Hat, Inc. Virtio block device > >>> Kernel driver in use: virtio-pci > >>> 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 > >>> Family) High Definition Audio Controller (rev 01) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: snd_hda_intel > >>> 00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB > >>> UHCI Controller #1 (rev 03) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: uhci_hcd > >>> 00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB > >>> UHCI Controller #2 (rev 03) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: uhci_hcd > >>> 00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB > >>> UHCI Controller #3 (rev 03) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: uhci_hcd > >>> 00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 > >>> EHCI Controller #1 (rev 03) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: ehci-pci > >>> 00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface > >>> Controller (rev 02) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> 00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) > >>> 6 port SATA Controller [AHCI mode] (rev 02) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: ahci > >>> 00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller > >>> (rev 02) > >>> Subsystem: Red Hat, Inc. QEMU Virtual Machine > >>> Kernel driver in use: i801_smbus > >>> > >> > >> Is this taken while Jailhouse was enabled? It's missing your ivshmem > >> devices (00:0c.0 - 00:0f.0). > >> > > > > I did some changes to the root-cell config files, and now it’s showing > > the PCI device 00:0c.0 (I have added defined macro for VIRTIO_BLK > > only): > > > > qemux86-64:~# lspci -k > > . > > . > > . > > 00:0c.0 Unassigned class [ff80]: Siemens AG Device 4106 > > Subsystem: Siemens AG Device 4106 > > . > > . > > . > > > > But it’s not showing any association with the `uio_ivshmem`, and also > > I am still not able to find the `/dev/uio0`. > > > > And now > > echo "110a 4106 110a 4106 ffc002 ffffff" > > /sys/bus/pci/drivers/uio_ivshmem/new_id > > again. >
Here's the full log: qemux86-64:~# jailhouse enable /usr/share/jailhouse/cells/qemu-agl.cell qemux86-64:~# modprobe uio_ivshmem qemux86-64:~# lsmod Module Size Used by virtio_gpu 65536 0 virtio_dma_buf 16384 1 virtio_gpu virtio_net 53248 0 net_failover 16384 1 virtio_net failover 16384 1 net_failover jailhouse 36864 1 qemux86-64:~# echo "110a 4106 110a 4106 ffc002 ffffff" > /sys/bus/pci/drivers/uio_ivshmem/new_id qemux86-64:~# lspci -k . . . 00:0c.0 Unassigned class [ff80]: Siemens AG Device 4106 Subsystem: Siemens AG Device 4106 . . . qemux86-64:~# ./virtio-ivshmem-block /dev/uio0 disk.img ./virtio-ivshmem-block: cannot open /dev/uio0: No such file or directory qemux86-64:~# find /dev/ -name "uio*" And Console Logs: $ nc localhost 4321 �������� Initializing Jailhouse hypervisor v0.12 (279-g63000120) on CPU 2 Code location: 0xfffffffff0000050 Using xAPIC Page pool usage after early setup: mem 49/975, remap 1/131072 Initializing processors: CPU 2... (APIC ID 2) OK CPU 0... (APIC ID 0) OK CPU 3... (APIC ID 3) OK CPU 1... (APIC ID 1) OK Initializing unit: VT-d DMAR unit @0xfed90000/0x1000 Reserving 24 interrupt(s) for device ff:00.0 at index 0 Initializing unit: IOAPIC Initializing unit: Cache Allocation Technology Initializing unit: PCI Adding PCI device 00:00.0 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:01.0 to cell "AGL-Jailhouse-RootCell" Reserving 3 interrupt(s) for device 00:01.0 at index 24 Adding PCI device 00:02.0 to cell "AGL-Jailhouse-RootCell" Reserving 3 interrupt(s) for device 00:02.0 at index 27 Adding PCI device 00:03.0 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:04.0 to cell "AGL-Jailhouse-RootCell" Reserving 2 interrupt(s) for device 00:04.0 at index 30 Adding PCI device 00:1b.0 to cell "AGL-Jailhouse-RootCell" Reserving 1 interrupt(s) for device 00:1b.0 at index 32 Adding PCI device 00:1d.0 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:1d.1 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:1d.2 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:1d.7 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:1f.0 to cell "AGL-Jailhouse-RootCell" Adding PCI device 00:1f.2 to cell "AGL-Jailhouse-RootCell" Reserving 1 interrupt(s) for device 00:1f.2 at index 33 Adding PCI device 00:1f.3 to cell "AGL-Jailhouse-RootCell" Adding virtual PCI device 00:0c.0 to cell "AGL-Jailhouse-RootCell" Page pool usage after late setup: mem 205/975, remap 65545/131072 Activating hypervisor Also I can not see `uio_ivshmem` in the `lsmod`. Thanks and Regards, Anmol > 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/CAC%2ByH-Zj8aPePQSLa3GL2TicXWMa_nOXTEEV2Agyjx3zJbZOLA%40mail.gmail.com.
