Am Mon, 27 Mar 2017 16:06:14 +0200
schrieb Claudio Scordino <[email protected]>:

> Dear all,
> 
> a colleague of mine is creating a simple demo where an inmate
> communicates a few data (u64) to the root cell on a x86-64
> architecture.
> 
> We have reserved some memory through memmap and added a ROOTSHARED
> memory region to both sysconfig.c and the cell.  However, Jailhouse
> prints the following error message as soon as the cell tries to write
> onto such region.
> 
> The same configuration worked properly on ARM64.
> 
> Have we missed/misconfigured something  ?

I guess you did not map the memory in the inmate, more on that under
the error message. If you are using the inmate lib use map_range.

> Note that we tried either using a single memmap to reserve both
> hypervisor and shared memories, or using two separate memmaps, but we
> get the same error.

The config generator parses your kernel command line and currently
supports only one "memmap" parameter, i think the last will win.

> Many thanks and best regards,
> 
>              Claudio
> 
> 
> 
> CPU 3 received SIPI, vector 100
> Started cell "pwm-demo"
> Calibrated TSC frequency: 2294682.398 kHz
> DEBUG Core ID RAW:<3>
> DEBUG Virtual Core ID:<0>
> FATAL: Unhandled VM-Exit, reason 2
> qualification 0
> vectoring info: 0 interrupt info: 0
> RIP: 0x00000000000f0df2 RSP: 0x00000000000dffb0 FLAGS: 10202
> RAX: 0x000000003f200000 RBX: 0x00000000000f1f9c RCX:
> 0x0000000000000802 RDX: 0x00000000000e03a0 RSI: 0x0000000000000002
> RDI: 0x00000000000e03a0 CS: 10 BASE: 0x0000000000000000 AR-BYTES:
> a09b EFER.LMA 1 CR0: 0x0000000080010031 CR3: 0x00000000000f5000 CR4:
> 0x0000000000002020 EFER: 0x0000000000000500
> Parking CPU 3 (Cell: "pwm-demo")

That is a triple-fault in the inmate. If the region was not properly
mapped to guest-physical i would expect a nested PF, a memory access
violation by the cell.
But a triple fault suggests something went wrong inside the cell.

For ARM64 i would guess you are running in a fully identity mapped
address space or without virtual memory enabled.

Henning

-- 
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