Re: Invalid PIO write, port:70

2018-04-13 Thread Henning Schild
Am Fri, 13 Apr 2018 01:21:22 -0700
schrieb :

> Hi all,
> 
> I am getting the below crash after few minutes when non root cell is
> running.
> 
> [root@localhost ~]# FATAL: Invalid PIO write, port: 70 size: 1
> RIP: 0x90036e0b RSP: 0xb34249697d38 FLAGS: 6
> RAX: 0x000b RBX: 0x0012 RCX:
> 0x51eb851f RDX: 0x0064 RSI: 0x000c
> RDI: 0x000b CS: 10 BASE: 0x AR-BYTES:
> a09b EFER.LMA 1 CR0: 0x80050033 CR3: 0x00070920a002 CR4:
> 0x003626e0 EFER: 0x0d01
> Parking CPU 18 (Cell: "RootCell")
> 

The RIP and your kernel symbols should also tell you which device
driver is behind that access. You could also unload that driver or
otherwise make it not access the port.

Henning

> I have added access into the pio_bitmap region of both root and non
> root cell still i am getting this issue. If anyone faced the similar
> issue and let me anything missed in the config file
> 
> .pio_bitmap = {
> /*[ 0/8 ...   0x3f/8] = -1,*/
> [ 0/8 ...   0x7/8] = 0,/*0x1 port crash*/
> [ 8/8 ...   0x3f/8] = -1,
> [  0x40/8 ...   0x47/8] = 0xf0, /* PIT */
> [  0x48/8 ...   0x5f/8] = -1,
> [  0x60/8 ...   0x67/8] = 0xec, /* HACK: NMI status/control */
> [  0x68/8 ...   0x6f/8] = -1,
> 
> [  0x70/8 ...   0x77/8] = 0,/* added */
> 
> /*[  0x78/8 ...   0x3af/8] = -1,*/
> [  0x78/8 ...   0xaf/8] = -1,
>  ...
> 
> I have attached the root and non-root cell configs
> 

-- 
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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Invalid PIO write, port:70

2018-04-13 Thread Jan Kiszka
On 2018-04-13 10:21, a.ku...@matellio.com wrote:
> Hi all,
> 
> I am getting the below crash after few minutes when non root cell is running.
> 
> [root@localhost ~]# FATAL: Invalid PIO write, port: 70 size: 1
> RIP: 0x90036e0b RSP: 0xb34249697d38 FLAGS: 6
> RAX: 0x000b RBX: 0x0012 RCX: 0x51eb851f
> RDX: 0x0064 RSI: 0x000c RDI: 0x000b
> CS: 10 BASE: 0x AR-BYTES: a09b EFER.LMA 1
> CR0: 0x80050033 CR3: 0x00070920a002 CR4: 0x003626e0
> EFER: 0x0d01
> Parking CPU 18 (Cell: "RootCell")
> 
> 
> I have added access into the pio_bitmap region of both root and non root cell 
> still i am getting this issue. If anyone faced the similar issue and let me 
> anything missed in the config file

If you assign a port to a non-root cell, you implicitly revoke access to
it for the root cell. That is by design because you cannot safely share
devices by granting everyone access to them.

Jan

-- 
Siemens AG, Corporate Technology, CT RDA IOT 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 jailhouse-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.