> I would recommend to switch to 5.10 or queues/jailhouse as I'm no longer
> updating 5.4 with potential fixes.
>
It’s now working perfectly with the `queues/jailhouse` kernel.
> > - Any hints to get it working properly with the "queues/jailhouse" branch.
>
> Is that failing cell your non-root Linux cell? I suppose it ran out of
> RAM. How much did you assign to it?
>
No, I was asking for the root cell.
Also, we now have the working Jailhouse setup and `root cell`, the problem we are now facing is related to `non-root linux` cell, we have used the `bzImage` and `rootfs.cpio`from `jailhouse-images` for booting the `non-root-linux-cell`, and used the address for `low RAM` and `high RAM` w.r.t to the address spit out by the `jailhouse config create <cell_config_name>` for the root cell.
Error Log:
$ nc localhost <port>
Initializing Jailhouse hypervisor v0.12 (273-g6d9c51d0-dirty) on CPU 3
Code location: 0xfffffffff0000050
Using xAPIC
Page pool usage after early setup: mem 49/975, remap 1/131072
Initializing processors:
CPU 3... (APIC ID 3) OK
CPU 1... (APIC ID 1) OK
CPU 2... (APIC ID 2) OK
CPU 0... (APIC ID 0) 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 "RootCell"
Adding PCI device 00:01.0 to cell "RootCell"
Reserving 3 interrupt(s) for device 00:01.0 at index 24
Adding PCI device 00:02.0 to cell "RootCell"
Reserving 3 interrupt(s) for device 00:02.0 at index 27
Adding PCI device 00:03.0 to cell "RootCell"
Adding PCI device 00:04.0 to cell "RootCell"
Reserving 2 interrupt(s) for device 00:04.0 at index 30
Adding PCI device 00:1b.0 to cell "RootCell"
Reserving 1 interrupt(s) for device 00:1b.0 at index 32
Adding PCI device 00:1d.0 to cell "RootCell"
Adding PCI device 00:1d.1 to cell "RootCell"
Adding PCI device 00:1d.2 to cell "RootCell"
Adding PCI device 00:1d.7 to cell "RootCell"
Adding PCI device 00:1f.0 to cell "RootCell"
Adding PCI device 00:1f.2 to cell "RootCell"
Reserving 1 interrupt(s) for device 00:1f.2 at index 33
Adding PCI device 00:1f.3 to cell "RootCell"
Page pool usage after late setup: mem 268/975, remap 65545/131072
Activating hypervisor
Adding virtual PCI device 00:0c.0 to cell "linux-x86-demo"
Adding virtual PCI device 00:0d.0 to cell "linux-x86-demo"
Adding virtual PCI device 00:0e.0 to cell "linux-x86-demo"
CPU 2 received SIPI, vector 9a
CPU 3 received SIPI, vector 9a
^C
I have attached the root cell and non-root cell configurations, please find attached.
I also saw some patches related to `jailhouse debug console` in the recent update(5.14-rc2), could it be helpful in resolving this issue?
Thanks and Regards,
Anmol
Hello,
Non-Root Linux inmate is working now and also boot logs are showing in the serial console.
Now I am trying to follow the Virtio over IVSHMEM block and want to get it running, some references I took are [1], [2], [3].
I am using the `queues/jailhouse` kernel for Root cell, and same for Non-root cell(with .config from `jailhouse-images`).
I did some changes in the Root cell and added the required memory regions and also added the PCI devices, memory address matching with the non-root cell.
I have also enabled the `UIO_IVSHMEM` in the kernel and can see that `/sys/bus/pci/drivers/uio_ivshmem/new_id` is present.
Also `virtio_ivshmem` is present in Non-root cell's kernel.
My Questions are:
- After running the `$ echo "110a 4106 110a 4106 ffc002 ffffff" > /sys/bus/pci/drivers/uio_ivshmem/new_id`, It's not showing any responses. Is it expected?
- In this command `$ virtio-ivshmem-block /dev/uio0 /path/to/disk.image`, I am not able to load the `virtio-ivshmem-block` module, and is the `disc.image` a standard `LinuxInstallation.img`?
- For `virtio-ivshmem-block`, do I need to compile the `virtio-ivshmem-block.c` externally and copy the module to the QEmulated Image?
- Can we also use the `queues/jailhouse` kernel for this setup instead of `queues/ivshmem2`?
Please tell me if I am missing any Important steps.
I am also attaching the Root cell and Non Root cell config files.
Thanks and Regards,
Anmol
[1] https://github.com/siemens/jailhouse/blob/master/Documentation/inter-cell-communication.md
[2] https://groups.google.com/g/jailhouse-dev/c/3xvC22mud-E/m/AFF665uxBAAJ
[3] https://groups.google.com/g/jailhouse-dev/c/vYWIKp-Fw8w/m/1Nx59bsQHwAJ