Inter-cell communication on BPM1

95 visualizzazioni
Passa al primo messaggio da leggere

Martinez Garcia Jorge Luis (PS-EC/ESB2)

da leggere,
25 apr 2018, 06:21:0425/04/18
a jailho...@googlegroups.com

Dear all,

I’m interested in testing some inter-cell communication on the Banana Pi M1 by using the patches provided by Mr. Henning Schild:

https://groups.google.com/forum/#!searchin/jailhouse-dev/BananaPi%7Csort:date/jailhouse-dev/IqwQsQ9JEno/glRtxHzoAwAJ

If I understood correctly,  I need apply the following patches to jailhouse: https://groups.google.com/forum/#!topic/jailhouse-dev/TeGZNtfOV1Y

and also use the shared memory device found in https://github.com/henning-schild-work/ivshmem-guest-code/tree/jailhouse, right?

@ Henning: your settings were jailhouse 0.8 and kernel 4.15-rc4 and you are not using a YOCTO-based build , correct?

Best,

Jorge

Jan Kiszka

da leggere,
26 apr 2018, 03:12:5726/04/18
a Martinez Garcia Jorge Luis (PS-EC/ESB2), jailho...@googlegroups.com, Henning Schild
Hi Jorge,

On 2018-04-25 12:21, Martinez Garcia Jorge Luis (PS-EC/ESB2) wrote:
> Dear all,
>
> I’m interested in testing some inter-cell communication on the Banana Pi
> M1 by using the patches provided by Mr. Henning Schild:
>
> https://groups.google.com/forum/#!searchin/jailhouse-dev/BananaPi%7Csort:date/jailhouse-dev/IqwQsQ9JEno/glRtxHzoAwAJ
>
> If I understood correctly,  I need apply the following patches to
> jailhouse:
> https://groups.google.com/forum/#!topic/jailhouse-dev/TeGZNtfOV1Y
> <https://groups.google.com/forum/#%21topic/jailhouse-dev/TeGZNtfOV1Y>
>
> and also use the shared memory device found in
> https://github.com/henning-schild-work/ivshmem-guest-code/tree/jailhouse, right?

At least when using the Jailhouse version of that time. Patches may or
may not apply anymore to current next or even master. Henning might know
more. The effort to integrate this unfortunately stalled after that due
to urgent tasks.

>
> @ Henning: your settings were jailhouse 0.8 and kernel 4.15-rc4 and you
> are not using a YOCTO-based build , correct?

We are not using Yocto for our Jailhouse setups. I've started an
Isar/Debian effort (https://github.com/siemens/jailhouse-images), but we
have no cross-support yet, not to speak of a Banana Pi image (although
that would be a valuable target eventually.

Jan

>
> Best,
>
> Jorge
>
> --
> 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-de...@googlegroups.com
> <mailto:jailhouse-de...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux

Assila Belhouichet

da leggere,
7 mag 2018, 09:48:5407/05/18
a Jailhouse
Hi all,

i reproduced the patchs that Henning provided for testing the intercell communication on the bananapi, everything was okay until i executed the command:

--> jailhouse cell create bananapi-linux-demo.cell

then i got this error message:

Adding virtual PCI device 00:00.0 to cell "bananapi-linux-demo"
Shared memory connection established: "bananapi-linux-demo" <--> "Banana-Pi"
Created cell "bananapi-linux-demo"
Page pool usage after cell creation: mem 71/16360, remap 37/131072
FATAL: instruction abort at 0x7a010f00
FATAL: forbidden access (exception class 0x20)
pc=0xbf00073c cpsr=0x80000013 hsr=0x80000006
r0=0x00000000 r1=0x5d42b000 r2=0x00000008 r3=0x00000002
r4=0x00000000 r5=0xdd42b000 r6=0xdd66ab00 r7=0xbf004600
r8=0x00000004 r9=0xc0c07554 r10=0xc0c07554 r11=0xdd11beec
r12=0x00000002 r13=0xdd11be80 r14=0xbf000720
Parking CPU 0 (Cell: "Banana-Pi")

--i think there is a problem in the memory allocation for the bananapi-linux-demo, can you please tell me how can i debug that ? i verified the ivshmem mem definition for both cells root and non-root cell and they are the same ... maybe someone faced the same problem before?

thanks in advance,
Assila

Jan Kiszka

da leggere,
7 mag 2018, 09:54:3707/05/18
a Assila Belhouichet, Jailhouse
On 2018-05-07 15:48, Assila Belhouichet wrote:
> Hi all,
>
> i reproduced the patchs that Henning provided for testing the intercell communication on the bananapi, everything was okay until i executed the command:
>
> --> jailhouse cell create bananapi-linux-demo.cell
>
> then i got this error message:
>
> Adding virtual PCI device 00:00.0 to cell "bananapi-linux-demo"
> Shared memory connection established: "bananapi-linux-demo" <--> "Banana-Pi"
> Created cell "bananapi-linux-demo"
> Page pool usage after cell creation: mem 71/16360, remap 37/131072
> FATAL: instruction abort at 0x7a010f00

That address is inside the region which should have been reserved from
Linux for use by inmates. How are you booting the initial Linux? Either
append "mem=932M vmalloc=512M" to its command line or patch the device
tree to have a corresponding reservation region.

Jan

> FATAL: forbidden access (exception class 0x20)
> pc=0xbf00073c cpsr=0x80000013 hsr=0x80000006
> r0=0x00000000 r1=0x5d42b000 r2=0x00000008 r3=0x00000002
> r4=0x00000000 r5=0xdd42b000 r6=0xdd66ab00 r7=0xbf004600
> r8=0x00000004 r9=0xc0c07554 r10=0xc0c07554 r11=0xdd11beec
> r12=0x00000002 r13=0xdd11be80 r14=0xbf000720
> Parking CPU 0 (Cell: "Banana-Pi")
>
> --i think there is a problem in the memory allocation for the bananapi-linux-demo, can you please tell me how can i debug that ? i verified the ivshmem mem definition for both cells root and non-root cell and they are the same ... maybe someone faced the same problem before?
>
> thanks in advance,
> Assila
>

Henning Schild

da leggere,
7 mag 2018, 12:42:3007/05/18
a [ext] Jan Kiszka, Assila Belhouichet, Jailhouse
Am Mon, 7 May 2018 15:54:35 +0200
schrieb "[ext] Jan Kiszka" <jan.k...@siemens.com>:

> On 2018-05-07 15:48, Assila Belhouichet wrote:
> > Hi all,
> >
> > i reproduced the patchs that Henning provided for testing the
> > intercell communication on the bananapi, everything was okay until
> > i executed the command: --> jailhouse cell create
> > bananapi-linux-demo.cell
> >
> > then i got this error message:

I still have those patches sitting on the code they where based on,
maybe try that instead of whatever you are using now:

https://github.com/henning-schild-work/jailhouse/commits/henning/staging

> > Adding virtual PCI device 00:00.0 to cell "bananapi-linux-demo"
> > Shared memory connection established: "bananapi-linux-demo" <-->
> > "Banana-Pi" Created cell "bananapi-linux-demo"
> > Page pool usage after cell creation: mem 71/16360, remap 37/131072
> > FATAL: instruction abort at 0x7a010f00
>
> That address is inside the region which should have been reserved from
> Linux for use by inmates. How are you booting the initial Linux?
> Either append "mem=932M vmalloc=512M" to its command line or patch
> the device tree to have a corresponding reservation region.

If the region was not reserved the "jailhouse enable" should have
failed, that at least checks that the hypervisor part can be
reserved ... Either that guard did not catch this case or the reserved
region does not cover the inmates. (which are not checked/reserved)

Henning

Assila Belhouichet

da leggere,
17 mag 2018, 07:50:0217/05/18
a Jailhouse

Hi Hennig,

i started over with the patches you provides from this link :

https://github.com/henning-schild-work/jailhouse/commits/henning/staging

and now i get this error when i execute : jailhouse enable bananapi.cell

[ 1299.460472] jailhouse: mem_region_request failed for hypervisor memory.
[ 1299.467431] jailhouse: Did you reserve the memory with "memmap=" or "mem="?
JAILHOUSE_ENABLE: Invalid argument


please can you help me to solve this problem?

Best regards,
Assila

assila.be...@ensi-uma.tn

da leggere,
25 mag 2018, 10:35:2625/05/18
a Jailhouse
Hi all,

when creating the linux inmate to test the inter-cell commuication with the patchs Henning provided, should i just create it without providing any particular configuration like Henning indicated or should i create it in conformity with this doc:

https://github.com/siemens/jailhouse/blob/master/Documentation/non-root-linux.txt

thx in advance

assila.be...@ensi-uma.tn

da leggere,
25 mag 2018, 13:39:0125/05/18
a Jailhouse
@Henning : which kernel version did you use to test the ICC please ?

Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi