On Friday, November 4, 2016 at 12:41:40 AM UTC+8, J. Kiszka wrote: > On 2016-11-03 17:15, [email protected] wrote: > > On Friday, November 4, 2016 at 12:03:29 AM UTC+8, J. Kiszka wrote: > >> On 2016-11-03 14:27, [email protected] wrote: > >>> Hi everyone, > >>> > >>> I'm a bit new to the jailhouse hypervisor. I was wondering if you could > >>> help > >>> me debug the following error i encountered upon execution of the > >>> following commands: > >>> > >>> insmod driver/jailhouse.ko > >>> jailhouse enable configs/mycell.cell > >>> jailhouse cell linux configs/linux-x86-demo.cell > >>> ../linux/arch/x86/boot/bzImage > >> > >> Was that kernel patched to run in a Jailhouse non-root cell? See > >> Documentation/non-root-linux.txt. > >> > >> Jan > > > > Hi Jan, > > > > Yes, I've patched the kernel (4.8.0) from the queues/jailhouse branch to > > disable the ff: > > - CONFIG_SERIO (when i disable this, im unable to use my usb mouse and kbd > > for qemu setup but works fine for baremetal. ive tried usb passthrough too > > but still unable to use them. but this issue is less important.) > > - CONFIG_PM_TRACE_RTC > > > > and enable CONFIG_JAILHOUSE_GUEST. > > > > I'm using the same kernel for both in qemu and baremetal setups. > > As well as use the created bzImage (from the same branch) for loading the > > linux-x86-demo.cell > > > > Currently, you will find it more convenient to have separate kernels for > root and non-root Linux. > > Not sure what goes wrong here. I've attached my Linux non-root .config > as reference, maybe there is a subtle difference. > > Jan
Hi Jan, Thank you for your advice. I was able to run a non-root linux cell using v4.8.0 as host kernel and using a v4.8.6 kernel for the guest (non-root linux) cell But if I may, I have a couple more questions that I would like to clarify: 1. When running a non-root linux cell for the first time, would it be necessary to supply a initrd.img file for example from my PC's /boot/initrd.img-xxx? 2. Also, if my understanding is correct, it is necessary to perform a passing/passthrough of my separate GPU (pci) to the non-root linux cell in order to view or display the now running non-root linux cell? (when i tried to pass through my gpu, i encountered a "!!! unknown header type 7f" error but i was also able to see the log where jailhouse was able to claim the gpu. My PC froze upon doing so 3. I was able to pass my extra NIC to the non-root linux cell with the same unknown header message above but this time the PC did not freeze. But as soon as i performed jailhouse disable, the control of the NIC was not returned successfully to the root cell. Upon performing lspci, it no longer display a kernel driver in use and the memory regions were disabled Im sorry if im not able to provide any logs as of now since i do not have a serial port. Is it possible to setup a vga-console on my integrated gpu which uses a DVI connection? (but in bios it mentions that it is a vga adapter) Thank you and sorry for the lengthy post > > -- > Siemens AG, Corporate Technology, CT RDA ITP SES-DE > Corporate 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]. For more options, visit https://groups.google.com/d/optout.
