On 11.08.21 20:36, Anmol wrote: > 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?
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. > > - 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`? > What do you mean with "load the `virtio-ivshmem-block` module"? The tool is no module, it's a plain Linux application you just need to start. When you do that, what errors do you get? The disk image needs to be raw image. But its size matters as that defines the virtual disk size, but you may even leave it empty and only partition or format it from the front-end guest. > - For `virtio-ivshmem-block`, do I need to compile the > `virtio-ivshmem-block.c` externally and copy the module to the QEmulated > Image? You need to have that application inside the guest that is suppose to act as back-end, yes. How you make it available to that guest is up to you. > > - Can we also use the `queues/jailhouse` kernel for this setup instead > of `queues/ivshmem2`? > Yes, queues/jailhouse contains all what is in queues/ivshmem2, and more. 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/3f00a102-357e-de0e-3ea3-f338f00ca793%40web.de.
