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


> 
> > 
> > The commands above will display the following error message
> > 
> > Initializing Jailhouse hypervisor v0.5(463-g7de8a70-dirty) on CPU 0
> > Code location: 0xfffffffff0000030
> > Using xAPIC
> > Page pool usage after early setup: mem 40/1484, remap 65/131072
> > Initializing processors:
> > CPU 0...(APIC ID 0) OK
> > CPU 1...(APIC ID 1) OK
> > CPU 3...(APIC ID 3) OK
> > CPU 2...(APIC ID 2) OK
> > DMAR unit @0xfed90000.0x1000
> > Reserving 23 interrupt(s) for device ff00 at index 0
> > Adding PCI device 00:00.0 to cell "RootCell"
> > Adding PCI device 00:01.0 to cell "RootCell"
> > Adding PCI device 00:02.0 to cell "RootCell"
> > Reserving 3 interrupt(s) for device 0010 at index 24
> > Adding PCI device 00:03.0 to cell "RootCell"
> > Reserving 16 interrupt(s) for device 0018 at index 27
> > Adding PCI device 00:1b.0 to cell "RootCell"
> > Reserving 1 interrupt(s) for device 00d8 at index 43
> > 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 00fa at index 44
> > Adding PCI device 00:1f.3 to cell "RootCell"
> > Page pool usage after late setup: mem 247/1484, remap 65608/131072
> > Activating hypervisor
> > Created cell "linux-x86-demo"
> > Page pool usage after cell creation: mem 379/1484, remap 65608/131072
> > Cell "linux-x86-demo"can be loaded
> > CPU 3 received SIPI, vector 100
> > Started cell "linux-x86-demo"
> > FATAL: Unhandled MSR write: 200
> > RIP: 0xffffffff8105ecd4 RSP: 0xffffffff81c03e60 FLAGS:86
> > RAX: 0x0000000000000006 RBX: 0x0000000000000000 RCX:0x0000000000000200
> > RDX: 0x0000000000000000 RSI: 0x0000000000000006 RDI:0x0000000000000200
> > CS: 10 BASE: 0x0000000000000000 AR-BYTES: a09b EFER.LMA 1
> > CR0: 0x0000000080050033 CR3: 0x0000000001def000 CR4:0x0000000000002620
> > EFER: 0x0000000000000d01
> > Parking CPU 3 (Cell: "linux-x86-demo"
> > 
> > Im trying to run a linux inmate both using a qemu and a baremetal setup.
> > The error above was displayed when trying to run jailhouse using qemu. (im 
> > still working on how to display logs on baremetal PC setup)
> > 
> > I'll try to post both my root cell and linux-inmate cells or other
> > information ASAP.
> > 
> > Thank you!
> > 
> 
> -- 
> 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.

Reply via email to