Re: Inter-cell communication on BPM1

2018-05-07 Thread Henning Schild
e 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 ar

Re: Short- and mid-term roadmap

2018-05-03 Thread Henning Schild
Am Wed, 2 May 2018 08:43:10 +0200 schrieb Jan Kiszka : > Hi all, > > there is currently a large set of almost 50 patches in next (I kept it > longer there to provide more time for reviews). Ralf just suggested > ~20 further patches for inmates refactorings. And there a

Re: [PATCH] x86: mmio: Skip over address size prefix found in x32 code

2018-05-03 Thread Henning Schild
Am Fri, 27 Apr 2018 19:28:21 +0200 schrieb Jan Kiszka <jan.kis...@siemens.com>: > On 2018-04-27 13:01, Henning Schild wrote: > > The prefix does appear in guests compiled with "-mx32". In the > > instruction parser we just have to skip over it. > > The patch

[PATCH v2] x86: mmio: Skip over address size prefix found in x32 code

2018-05-03 Thread Henning Schild
The prefix does appear in guests compiled with "-mx32". In the instruction parser we just have to skip over it. The patch also adds a few of these instructions to the mmio testcase. Reported-by: Rene Graf <rene.g...@siemens.com> Signed-off-by: Henning Schild <henning

[PATCH] x86: mmio: Skip over address size prefix found in x32 code

2018-04-27 Thread Henning Schild
The prefix does appear in guests compiled with "-mx32". In the instruction parser we just have to skip over it. The patch also adds a few of these instructions to the mmio testcase. Reported-by: Rene Graf <rene.g...@siemens.com> Signed-off-by: Henning Schild <henning

Re: [PATCH 06/16] x86: Add MMIO access test device

2018-04-27 Thread Henning Schild
Am Mon, 23 Apr 2018 18:18:30 +0200 schrieb "Jan Kiszka" : > From: Jan Kiszka > > On x86, we unfortunately need to parse the guest instruction that > triggered an MMIO access interception. This parser started to be small > and simple - and then

Re: IVSHMEM-NET probe initialization failed

2018-04-20 Thread Henning Schild
Am Fri, 20 Apr 2018 07:51:01 -0700 schrieb : > Hi all, > > I am trying to bring virtual network interface in non-root cell and > also i am trying to understand how virtual network will initialize > while loading non-root cell, i am putting some print statements in >

Re: [jh-images][PATCH] Update to Isar version with debootstrap support

2018-04-17 Thread Henning Schild
Am Mon, 16 Apr 2018 18:34:07 +0200 schrieb "[ext] Jan Kiszka" : > This switches to the Isar version replacing multistrap with > debootstrap. As the isar-base-image no longer sets the host name, we > need to do this now. > > Signed-off-by: Jan Kiszka

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:

Re: virtual network interface on x86

2018-04-06 Thread Henning Schild
Am Fri, 6 Apr 2018 09:12:00 -0700 schrieb : > Hi Jan, > We are trying to establish the connection between root cell to > non-root cell on x86 using ivshmem-net driver. > > > we did below modifications in root cell and non root cell > configurations. > > // PCI

Re: Share memory among cells on arm64

2018-04-04 Thread Henning Schild
it on https://github.com/henning-schild-work/ivshmem-guest-code/tree/jailhouse Here is the bit that finds the region https://github.com/henning-schild-work/ivshmem-guest-code/blob/jailhouse/kernel_module/uio/uio_ivshmem.c#L96 Also see: https://github.com/henning-schild-work/ivshmem-guest-code/blob

Re: TX2: slow system after enabling Jailhouse

2018-03-26 Thread Henning Schild
Am Mon, 26 Mar 2018 18:08:19 +0200 schrieb Claudio Scordino : > Hello everybody, > > when trying Jailhouse on a TX2 board I'm experiencing a very slow > system just after "jailhouse enable". > > The command "jailhouse cell stats" reports a huge number of vm_exits >

Re: [PATCH] tools: config-create: update iomem parser to work on recent kernels

2018-03-23 Thread Henning Schild
Am Thu, 22 Mar 2018 18:10:35 +0100 schrieb Ralf Ramsauer <ralf.ramsa...@oth-regensburg.de>: > Hi, > > On 03/22/2018 05:41 PM, Henning Schild wrote: > > In case it does matter, i think it is coming from > > ... arch/x86/kernel/e820.c > > and 4.12 c

Re: [PATCH] tools: config-create: update iomem parser to work on recent kernels

2018-03-22 Thread Henning Schild
In case it does matter, i think it is coming from ... arch/x86/kernel/e820.c and 4.12 changed it to first letter capital. Henning Am Thu, 22 Mar 2018 17:28:51 +0100 schrieb Henning Schild <henning.sch...@siemens.com>: > More recent kernels (did not try to identify which versi

Re: jailhouse config size issue while accessing memory region

2018-03-22 Thread Henning Schild
Am Wed, 21 Mar 2018 09:45:09 -0700 schrieb <anilapp...@gmail.com>: > On Wednesday, March 21, 2018 at 8:54:00 PM UTC+5:30, Henning Schild > wrote: > > Am Wed, 21 Mar 2018 07:31:43 -0700 > > schrieb <anilapp...@gmail.com>: > > > > > Hi Jan, > &

[PATCH] tools: config-create: update iomem parser to work on recent kernels

2018-03-22 Thread Henning Schild
More recent kernels (did not try to identify which version) spell the string "reserved" with a capital letter in front. Match both and support old and new kernels. Reported-by: Anil Kumar <anilapp...@gmail.com> Signed-off-by: Henning Schild <henning.sch...@siemens.com> ---

Re: jailhouse config size issue while accessing memory region

2018-03-21 Thread Henning Schild
Am Wed, 21 Mar 2018 07:31:43 -0700 schrieb : > Hi Jan, > we are working on jailhouse on x86 and facing some issues with > system(root cell) config. This is one of the issue while > accessing /proc/iomem for our system x86 (xeon) > > 7933d018-7933d018 : APEI ERST >

Re: IVSHMEM on QEMU/KVM?

2018-02-23 Thread Henning Schild
Am Fri, 23 Feb 2018 02:34:22 -0800 schrieb <a@matellio.com>: > On Wednesday, February 21, 2018 at 3:08:35 PM UTC+5:30, Henning > Schild wrote: > > Am Tue, 20 Feb 2018 21:19:03 -0800 > > schrieb <a@matellio.com>: > > > > > On Wednesday, Febru

Re: Invalid PIO read for PORT 64?

2018-02-23 Thread Henning Schild
Am Thu, 22 Feb 2018 01:52:28 -0800 schrieb : > Hi, > > I'm working on QEMU setup.I'm using 4.15-rc4 jailhouse patch kernel > for root cell and for non root cell i'm using 4.9 vanilla kernel with > jailhouse patch (back ported). while creating non root cell, linux > was

Re: IVSHMEM on QEMU/KVM?

2018-02-20 Thread Henning Schild
Am Tue, 20 Feb 2018 06:00:24 -0800 schrieb : > Hi all, > > I'm experimenting jailhouse in QEMU on X86 platform.I'm able to run > application and load Linux on non root cell. > > And experimenting inter-cell communication between root and non-root > cell(as per yours

Re: virtual serail console

2018-02-20 Thread Henning Schild
When sharing a physical console or the DEBUG_CONSOLE you will not have proper multiplexing to get both consoles interactive. You will be able to read the intermixed output from the host, but you have no way to direct host output to a cell input. I guess you might be talking about non-root-linux

Re: Jailhouse on OrangePI PC2 and A35/A72 based board

2018-02-12 Thread Henning Schild
Am Mon, 12 Feb 2018 14:38:29 +0530 schrieb bharat gohil : > Hi Jan, > > I had modified root cell configuration as per your suggestion. > I got following error, > > Adding virtual PCI device 00:00.0 to cell "X" >

Re: x86-64 Jailhouse demo image generation using Isar

2018-02-09 Thread Henning Schild
Am Fri, 9 Feb 2018 16:23:11 +0100 schrieb "[ext] Jan Kiszka" : > Hi all, > > cross-posting to two communities as this is of common interested: > > I've just uploaded a new side-project of Jailhouse. It's called > jailhouse-images [1], and it aims at generating all what

Re: [PATCH 0/4] ivshmem-demo inmate for BananaPi-M1

2018-01-17 Thread Henning Schild
Am Wed, 17 Jan 2018 07:59:34 -0800 schrieb : > Hi, > > i've been trying to run the inter-cell communication on the bananapi > since the patchs were posted by Jonas, but i've been facing some > problems, finally when i saw the comments of Henning about the >

Re: [PATCH 1/3] inmates: lib: move pci defines and prototypes from x86 to common

2018-01-16 Thread Henning Schild
to revert the patch that introduced that, just for sharing configs Ivshmem-net should not get confused, since the demo-code does not touch the state-register - i kind of dislike the #ifdef-spaghetti that i ended up with ... Henning Am Tue, 16 Jan 2018 17:04:37 +0100 schrieb Henning Schild

[PATCH 1/3] inmates: lib: move pci defines and prototypes from x86 to common

2018-01-16 Thread Henning Schild
Code is just moved around and not changed. This prepares for using pci in arm demos. Signed-off-by: Henning Schild <henning.sch...@siemens.com> --- inmates/lib/inmate_common.h | 26 ++ inmates/lib/x86/inmate.h| 26 -- 2 files chang

[PATCH 2/3] inmates: lib: add mmio based pci implementation for arm

2018-01-16 Thread Henning Schild
From: Jonas Weståker <jo...@retotech.se> Signed-off-by: Jonas Weståker <jo...@retotech.se> Signed-off-by: Henning Schild <henning.sch...@siemens.com> --- inmates/lib/arm-common/Makefile.lib | 1 + inmates/lib/arm-common/include/inmate.h | 2 + inmates/lib/arm-common/pci

[PATCH 3/3] inmates: demos: make ivshmem work for arm and x86

2018-01-16 Thread Henning Schild
Signed-off-by: Henning Schild <henning.sch...@siemens.com> --- inmates/demos/arm/Makefile | 5 +- inmates/demos/{x86 => }/ivshmem-demo.c | 114 + inmates/demos/x86/Makefile | 4 +- 3 files changed, 95 insertions(+), 28

Re: [PATCH 0/4] ivshmem-demo inmate for BananaPi-M1

2018-01-15 Thread Henning Schild
Am Mon, 15 Jan 2018 02:05:04 -0800 schrieb Jonas Westaker : > On Monday, January 15, 2018 at 9:04:57 AM UTC+1, jonas wrote: > > > > > Cool, > > > > > > > > > > thanks for the patches! I just had a quick look and the > > > > > patches will likely require quite a few

Re: [PATCH 0/4] ivshmem-demo inmate for BananaPi-M1

2018-01-11 Thread Henning Schild
Am Fri, 5 Jan 2018 04:24:12 -0800 schrieb Jonas Westaker <jonas.westa...@gmail.com>: > On Friday, January 5, 2018 at 12:53:04 PM UTC+1, Henning Schild wrote: > > Cool, > > > > thanks for the patches! I just had a quick look and the patches will > > likely r

Re: [PATCH 0/4] ivshmem-demo inmate for BananaPi-M1

2018-01-05 Thread Henning Schild
Cool, thanks for the patches! I just had a quick look and the patches will likely require quite a few changes before they can get merged. The most prominent point would be that you create copies of existing files instead of moving them to common directories and changing them. This seems to apply

Re: questions related to IVSHMEM/uio_ivshmem

2017-12-21 Thread Henning Schild
Am Thu, 21 Dec 2017 15:10:09 +0100 schrieb "[ext] Henning Schild" <henning.sch...@siemens.com>: > Am Wed, 20 Dec 2017 23:42:26 -0800 > schrieb Luca Cuomo <l.cu...@evidence.eu.com>: > > > Il giorno lunedì 18 dicembre 2017 17:13:41 UTC+1, Henning Schild ha >

Re: questions related to IVSHMEM/uio_ivshmem

2017-12-21 Thread Henning Schild
Am Wed, 20 Dec 2017 23:42:26 -0800 schrieb Luca Cuomo <l.cu...@evidence.eu.com>: > Il giorno lunedì 18 dicembre 2017 17:13:41 UTC+1, Henning Schild ha > scritto: > > Am Mon, 18 Dec 2017 07:41:34 -0800 > > schrieb Luca Cuomo <l.cu...@evidence.eu.com>: > > >

Re: cpu_down gets stuck, upon non-root cell creation

2017-12-18 Thread Henning Schild
Am Wed, 13 Dec 2017 22:55:18 -0800 schrieb <a.ku...@matellio.com>: > On Tuesday, December 12, 2017 at 6:25:18 PM UTC+5:30, Henning Schild > wrote: > > Am Tue, 12 Dec 2017 04:41:12 -0800 > > schrieb <a.ku...@matellio.com>: > > > > > On Monday, Dece

Re: questions related to IVSHMEM/uio_ivshmem

2017-12-18 Thread Henning Schild
Am Mon, 18 Dec 2017 07:41:34 -0800 schrieb Luca Cuomo <l.cu...@evidence.eu.com>: > Il giorno lunedì 18 dicembre 2017 16:22:37 UTC+1, Henning Schild ha > scritto: > > Am Mon, 18 Dec 2017 05:58:11 -0800 > > schrieb Luca Cuomo <l.cu...@evidence.eu.com>: > >

Re: questions related to IVSHMEM/uio_ivshmem

2017-12-18 Thread Henning Schild
Am Mon, 18 Dec 2017 05:58:11 -0800 schrieb Luca Cuomo : > > > Hi, > > > > > > I can now confirm that the patch 87fbf1f works and interrupts are > > > received correctly, /dev/uiox is accessible and works as expected. > > > Without it, I got a: "FATAL: forbidden access

Re: cpu_down gets stuck, upon non-root cell creation

2017-12-12 Thread Henning Schild
Am Tue, 12 Dec 2017 04:41:12 -0800 schrieb <a.ku...@matellio.com>: > On Monday, December 11, 2017 at 6:14:28 PM UTC+5:30, Henning Schild > wrote: > > Am Mon, 11 Dec 2017 04:00:34 -0800 > > schrieb <a.ku...@matellio.com>: > > > > > Hi He

Re: cpu_down gets stuck, upon non-root cell creation

2017-12-12 Thread Henning Schild
Am Tue, 12 Dec 2017 10:19:54 +0530 schrieb 'Lokesh Vutla' via Jailhouse <jailhouse-dev@googlegroups.com>: > On Monday 11 December 2017 06:14 PM, Henning Schild wrote: > > Am Mon, 11 Dec 2017 04:00:34 -0800 > > schrieb <a.ku...@matellio.com>: > > > >>

Re: Help, to bring RTOS in Tx1 inmate cell

2017-12-11 Thread Henning Schild
Am Mon, 11 Dec 2017 22:21:49 +0530 schrieb Muneeswaran Rajendran : > Hi Jan, > > Thanks for mail. I am using seL4 kernel which was configured with > single A-57 core and build as single binary image. > > This image has kernel+driver and test application.I could able to

Re: [IVSHMEM]: Best way to discover BDF in IRQ handler

2017-12-11 Thread Henning Schild
Am Mon, 11 Dec 2017 07:32:33 -0800 schrieb Luca Cuomo : > Il giorno lunedì 11 dicembre 2017 15:47:01 UTC+1, J. Kiszka ha > scritto: > > On 2017-12-11 14:58, Luca Cuomo wrote: > > > Hi, > > > > > > i'm running a ivshmem-demo with a Linux root-cell and a BM cell > > >

Re: cpu_down gets stuck, upon non-root cell creation

2017-12-11 Thread Henning Schild
Am Mon, 11 Dec 2017 04:00:34 -0800 schrieb : > Hi Henning, > > > I did not really look the the Linux-logs you provided. That is > > because the Jailhouse side might be more interesting. I suspect > > that the cpu in question is violating the cell boundaries and > >

Re: Running ivshmem-demo in Jetson TK1.

2017-12-07 Thread Henning Schild
Hi Claudio, Am Thu, 7 Dec 2017 17:29:45 +0100 schrieb Claudio Scordino <clau...@evidence.eu.com>: > Hi guys, > > 2017-08-09 15:23 GMT+02:00 Henning Schild > <henning.sch...@siemens.com>: > > > Hey, > > > > unfortunately Jonas never published his

Re: [PATCH 2/8] inmates, tools: Avoid warnings of objtool

2017-11-27 Thread Henning Schild
Am Mon, 27 Nov 2017 08:40:40 +0100 schrieb "[ext] Jan Kiszka" : > From: Jan Kiszka > > Latest 4.15 kernel comes with the ORC unwinder and, along that, a > number of build-time checks on object files. These are tailored for > the kernel and do not

Re: How to build jailhouse inside a QEMU arm64 VM?

2017-11-14 Thread Henning Schild
Am Tue, 14 Nov 2017 01:09:40 -0800 schrieb Qiu Shui : > I create and boot an arm64 QEMU vm as this article guided > (https://translatedcode.wordpress.com/2017/07/24/installing-debian-on-qemus-64-bit-arm-virt-board/) > > Then install the tools: > $ apt-get install

[PATCH] README: use icon for webchat link

2017-10-20 Thread Henning Schild
Signed-off-by: Henning Schild <henning.sch...@siemens.com> diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ Frequently Asked Questions (FAQ): IRC channel: - Freenode, irc.freenode.net, #jailhouse - - Webchat: https://webchat.freenode.net/?ch

Re: Unhandled Trap

2017-10-04 Thread Henning Schild
Am Wed, 4 Oct 2017 10:59:36 + schrieb "Martinez Garcia Jorge Luis (DGS-EC/ESB2)" : > Hello, > I am trying to run Jailhouse on the BananaPi (Kernel version 4.3.3). > I installed Jailhouse on the BP and can see it by typing $lsmod. > However, I get the

[PATCH] From: Henning Schild <henning.sch...@siemens.com>

2017-09-29 Thread Henning Schild
-by: Lucian Raul Silistru <lucian.silis...@gmail.com> Signed-off-by: Henning Schild <henning.sch...@siemens.com> --- driver/cell.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/driver/cell.c b/driver/cell.c --- a/driver/cell.c +++ b/driver/cell.c @@

Re: inmate regions that are rootshared should be skipped when unmapping from root cell at cell start?

2017-09-28 Thread Henning Schild
Am Thu, 28 Sep 2017 06:58:22 -0700 schrieb Lucian Raul Silistru : > Hi, > > I've been working on being able to read some inmate memory (debug > log) and went about by turning one of the LOADABLE memory regions to > also be ROOTSHARED. > > While debugging why I

Re: [PATCH 1/1] control: fix bug introduced on new comm region timeout policy

2017-09-28 Thread Henning Schild
Am Thu, 28 Sep 2017 09:30:16 +0200 schrieb "[ext] Jan Kiszka" : > On 2017-09-28 01:27, Gustavo Lima Chaves wrote: > > 7c33278905ef6dfa2a04dbae5161d69f7d17ab1f introduced a bug where the > > header would not account for the new field. > > > > Signed-off-by: Gustavo Lima

Re: Error on creating config file?

2017-09-27 Thread Henning Schild
Am Wed, 27 Sep 2017 05:05:27 -0700 schrieb Arun raj : > Hi team, > > I inserted jailhouse modules on tx2 board.but while creating > config.c file i'm facing following error > > Traceback (most recent call last): > File

Re: [RFC] Device-Tree for cell configuration

2017-09-14 Thread Henning Schild
Am Wed, 13 Sep 2017 15:59:57 +0200 schrieb Ralf Ramsauer : > Hi Lokesh, > > thanks for picking up this topic -- we already had some offline > discussions on that before. > > On 09/13/2017 10:49 AM, Jan Kiszka wrote: > > Hi Lokesh > > > > On 2017-09-12 16:03,

Re: [PATCH] x86,mmio: Add support for 3 more instructions on the MMIO

2017-09-14 Thread Henning Schild
Am Wed, 13 Sep 2017 16:37:49 -0700 schrieb Gustavo Lima Chaves : > This makes Zephyr payloads doing pristine xAPIC-mode access to LOAPIC > registers work out-of-the-box. Since it's small and simple enough, I > guess it won't hurt to have it. The patches for the

[PATCH] docs: inter-cell: update pointer to Linux test code

2017-09-08 Thread Henning Schild
From: Henning Schild <henning.sch...@siemens.com> From: Henning Schild <henning.sch...@siemens.com> i transfered the project to fix email routing in my github account, the old location still works but i do not want to rely on that github feature Signed-off-by: Henning Schild

Re: questions related to IVSHMEM/uio_ivshmem

2017-09-06 Thread Henning Schild
Am Tue, 5 Sep 2017 00:41:52 -0700 schrieb Constantin Petra : > Hi, > > I can now confirm that the patch 87fbf1f works and interrupts are > received correctly, /dev/uiox is accessible and works as expected. > Without it, I got a: "FATAL: forbidden access (exception

Re: questions related to IVSHMEM/uio_ivshmem

2017-09-01 Thread Henning Schild
lude it into "jailhouse". Henning > Best Regards, > Constantin > > On Fri, Sep 1, 2017 at 4:21 PM, Henning Schild > <henning.sch...@siemens.com> wrote: > > > Am Fri, 1 Sep 2017 05:36:31 -0700 > > schrieb Constantin Petra <constantin.pe...@gmail.com>

Re: questions related to IVSHMEM/uio_ivshmem

2017-09-01 Thread Henning Schild
Am Fri, 1 Sep 2017 05:36:31 -0700 schrieb Constantin Petra <constantin.pe...@gmail.com>: > Hi, > > I have a question related to this above driver implementation, in an > Ultrascale+ environment. > > This was taken from > https://github.com/henning-schild/ivs

Re: [PATCH v5] core, vmx: New MSR bitmap format, now a whitelist

2017-09-01 Thread Henning Schild
Am Thu, 31 Aug 2017 12:51:45 +0200 schrieb "[ext] Jan Kiszka" : > On 2017-08-31 10:08, Andreas Rollbühler wrote: > > > > > > On 31.08.2017 00:07, Gustavo Lima Chaves wrote: > >>> + case MSR_IA32_MISC_ENABLE: > >>> + /* Allow 'Fast-Strings Enable' bit

Re: Create output with debug symbols, elf

2017-08-24 Thread Henning Schild
Am Thu, 24 Aug 2017 06:03:13 -0700 schrieb 'florian' via Jailhouse <jailhouse-dev@googlegroups.com>: > Am Donnerstag, 24. August 2017 14:59:55 UTC+2 schrieb Henning Schild: > > Am Thu, 24 Aug 2017 05:47:38 -0700 > > schrieb 'florian' via Jailhouse <jailhouse-dev@googlegro

Re: Create output with debug symbols, elf

2017-08-24 Thread Henning Schild
Am Thu, 24 Aug 2017 05:47:38 -0700 schrieb 'florian' via Jailhouse : > I want to debug Jailhouse with a Lauterbach but getting crazy to load > symbols into trace32. Is there any way to get an elf file as an > output of the compilation process (important part for

Re: [PATCH] docs, configs: Make passive comm region read-only

2017-08-24 Thread Henning Schild
Am Wed, 23 Aug 2017 19:40:09 -0400 schrieb Jan Kiszka : > From: Jan Kiszka > > Specify in the docs and implement in the configuration files that > cells with passive comm regions have only read access to it. This > avoids that a passive cell, i.e. one

Re: xAPIC mode

2017-08-23 Thread Henning Schild
a...@intel.com> [2017-08-22 > > > 16:36:54 +]: > > >> * Henning Schild <henning.sch...@siemens.com> [2017-08-22 > > >> 13:42:22 +]: > > >>> Am Mon, 21 Aug 2017 18:13:35 -0700 > > >>> schrieb Gustavo Lima Chaves &

Re: CONFIG_STRICT_DEVMEM and 'tools/jailhouse hardware check'

2017-08-22 Thread Henning Schild
Am Mon, 21 Aug 2017 17:24:37 -0700 schrieb Gustavo Lima Chaves : > Hi, > > it seems recent kernel configs on distros (at least mine, on Fedora), > come with CONFIG_STRICT_DEVMEM=y, what seems the cause of the > following output: > > Feature

Re: Inmates' access to cell state

2017-08-22 Thread Henning Schild
Am Mon, 21 Aug 2017 17:20:56 -0700 schrieb Gustavo Lima Chaves : > Hi, > > what's the intention with the current design where inmates have access > to cell_state (COMM_REGION_GENERIC_HEADER)? Is this safe? I was able > to replicate what apic-demo.c does WRT that in

Re: Problems with ivshmem-net on root cell

2017-08-21 Thread Henning Schild
Am Wed, 16 Aug 2017 00:13:54 + schrieb "Pontes, Otavio" : > On Sun, 2017-08-06 at 07:58 -0400, Jan Kiszka wrote: > > On 2017-08-05 02:59, Pontes, Otavio wrote: > > > Hi, > > > > > > I am using jailhouse in an Intel x86 hardware and I am having some > > > problems

Re: Running ivshmem-demo in Jetson TK1.

2017-08-09 Thread Henning Schild
Hey, unfortunately Jonas never published his overall changes, maybe now he understands why i kindly asked him to do so. I think Jonas maybe ran into every single problem one could encounter on the way, so if you read the thread you will probably be able to come up with a similar patch at some

Re: [PATCH] core, inmates: Introduce cell config flag to clean memory on destroy

2017-08-08 Thread Henning Schild
Am Tue, 8 Aug 2017 10:44:43 -0700 schrieb Gustavo Lima Chaves <gustavo.lima.cha...@intel.com>: > * Henning Schild <henning.sch...@siemens.com> [2017-08-08 19:34:32 > +0200]: > > > Am Tue, 8 Aug 2017 09:12:33 -0700 > > schrieb Gustavo Lima Chav

Re: [PATCH] core, inmates: Introduce cell config flag to clean memory on destroy

2017-08-08 Thread Henning Schild
Am Tue, 8 Aug 2017 09:12:33 -0700 schrieb Gustavo Lima Chaves <gustavo.lima.cha...@intel.com>: > * Henning Schild <henning.sch...@siemens.com> [2017-08-08 11:33:12 > +0200]: > > > Am Mon, 7 Aug 2017 16:24:47 -0700 > > schrieb Gustavo Lima Chav

Re: [PATCH] core, inmates: Introduce cell config flag to clean memory on destroy

2017-08-08 Thread Henning Schild
Am Mon, 7 Aug 2017 16:24:47 -0700 schrieb Gustavo Lima Chaves : > With the new JAILHOUSE_CELL_CLEAR_MEM (struct jailhouse_cell_desc's) > flag, Jailhouse will cleanup all of the cell's *loadable* memory, on > its destruction, before handing that memory region back to

Re: [PATCH] tools: config-create: Use number of int sources for vtd int limit

2017-08-02 Thread Henning Schild
Looks good, tested with python2 and 3 on one machine where the change would not be needed. pep8 also looks good. Henning Am Tue, 1 Aug 2017 17:29:13 -0700 schrieb Gustavo Lima Chaves : > We were sticking to hardcoded 256 entries there. We now scale better > for

Re: Using offline cpus for inmates

2017-07-19 Thread Henning Schild
Am Tue, 18 Jul 2017 14:20:00 -0700 schrieb Gavin Hindman-Intel : > Hi Jan, > > We're prototyping a future silicon feature that can crash the SoC if > the OS schedules some legacy transactions on them. Hacking the OS to > that extent is prohibitive, so our goal was to

Re: Real time performance on non-root linux

2017-06-26 Thread Henning Schild
Am Fri, 23 Jun 2017 14:56:58 -0700 schrieb Gustavo Lima Chaves : > * Jan Kiszka [2017-06-23 22:36:35 +0200]: > > > On 2017-06-23 19:33, Gustavo Lima Chaves wrote: > > > [...] > > > > > >>> > > >>> When I artificially block this

Re: Compile error "recompile with -fPIC"

2017-06-23 Thread Henning Schild
Am Thu, 22 Jun 2017 20:20:35 -0700 schrieb : > On Tuesday, June 20, 2017 at 11:49:42 AM UTC-4, mike wrote: > > Henning, > > thank you for the great support. > > > > Adding -fPIC to tools/Makefile > > > > KBUILD_CFLAGS := -fPIC -g -O3 -DLIBEXECDIR=\"$(libexecdir)\" \

[PATCH v2] tools: Makefile: hande compilers that default to pie

2017-06-22 Thread Henning Schild
From: Henning Schild <henning.sch...@siemens.com> Some distros enable their compilers to default to building position independant executables. The linux kernel just disables that when set, also for its tools. In the inmates subdir we already have -no-pic so that is not affected. Re

Re: QEMU VM hang after runnig jailhouse enable configs/qemu-vm.cell

2017-06-22 Thread Henning Schild
Am Wed, 21 Jun 2017 21:42:22 -0700 schrieb Vineesh Kumar <vineeshh...@gmail.com>: > On Wednesday, June 21, 2017 at 3:48:17 PM UTC+5:30, Vineesh Kumar > wrote: > > On Wednesday, June 21, 2017 at 1:55:14 PM UTC+5:30, Henning Schild > > wrote: > > > Am Tue, 20 Jun

Re: QEMU VM hang after runnig jailhouse enable configs/qemu-vm.cell

2017-06-21 Thread Henning Schild
Am Tue, 20 Jun 2017 21:22:27 -0700 schrieb Vineesh Kumar <vineeshh...@gmail.com>: > On Tuesday, June 20, 2017 at 2:52:38 PM UTC+5:30, Henning Schild > wrote: > > Am Tue, 20 Jun 2017 01:40:52 -0700 > > schrieb Vineesh Kumar <vineeshh...@gmail.com>: > > > &

Re: Compile error "recompile with -fPIC"

2017-06-20 Thread Henning Schild
or. So I think it's a problem with my local > configuration/installation. > > Any other advise? > Regards, > mike > > > On Tuesday, June 20, 2017 at 12:42:44 PM UTC+2, Henning Schild wrote: > > Am Tue, 20 Jun 2017 02:59:02 -0700 > > schrieb mike: > > &

Re: Compile error "recompile with -fPIC"

2017-06-20 Thread Henning Schild
Am Tue, 20 Jun 2017 02:59:02 -0700 schrieb mike : > To learn about jailhouse I'm trying to compile jailhouse on a ubuntu > 17.04 machine and I'm getting the link error Maybe try an older compiler, which version is your gcc? You can probably install something older and

Re: QEMU VM hang after runnig jailhouse enable configs/qemu-vm.cell

2017-06-20 Thread Henning Schild
Am Tue, 20 Jun 2017 01:40:52 -0700 schrieb Vineesh Kumar <vineeshh...@gmail.com>: > On Tuesday, June 20, 2017 at 1:03:42 PM UTC+5:30, Henning Schild > wrote: > > Am Mon, 19 Jun 2017 23:05:27 -0700 > > schrieb <vineeshh...@gmail.com>: > > > > > H

Re: QEMU VM hang after runnig jailhouse enable configs/qemu-vm.cell

2017-06-20 Thread Henning Schild
Am Mon, 19 Jun 2017 23:05:27 -0700 schrieb : > Hi >started the qemu vm with following command line. qemu-version: 2.9 > > #qemu-system-x86_64 -machine q35,kernel_irqchip=split -m 4G > -enable-kvm -smp 4 -device intel-iommu,intremap=on,x-buggy-eim=on > -cpu >

[PATCH] docs: gcov: fix broken reference to other document

2017-06-14 Thread Henning Schild
From: Henning Schild <henning.sch...@siemens.com> Signed-off-by: Henning Schild <henning.sch...@siemens.com> diff --git a/Documentation/gcov.txt b/Documentation/gcov.txt --- a/Documentation/gcov.txt +++ b/Documentation/gcov.txt @@ -3,7 +3,7 @@ Extracting code coverage inf

Re: Reenabling of ARM64

2017-06-12 Thread Henning Schild
Am Mon, 12 Jun 2017 16:44:45 +0200 schrieb Ralf Ramsauer : > Hi, > > during implementation of hyp-stub compatibility fixes for arm64 I > experienced that reenabling of Jailhouse fails, if there is only a > very short period of time between jailhouse disable and

Re: DMAR region size cannot be identified on Intel architecture

2017-06-06 Thread Henning Schild
Am Fri, 2 Jun 2017 12:29:14 -0700 schrieb : > Hi Swaraj, > > I am facing the exact same issue. I have tried enabling VT-d and > every other possible solution available on internet. Could you please > tell me how exactly did you resolve this error ? Any help would be >

[PATCH 1 of 2] inmates: x86: fix memory region in pci-demo

2017-05-31 Thread Henning Schild
From: Henning Schild <henning.sch...@siemens.com> 892d203179ef changed the qemu-vm cell and the memory location of the PCI device used for the demo. Reported-by: Andreas Rollbuehler <andreas.rollbueh...@siemens.com> Signed-off-by: Henning Schild <henning.sch...@siemens.com> di

[PATCH 2 of 2] inmates: x86: fix default uart port

2017-05-31 Thread Henning Schild
From: Henning Schild <henning.sch...@siemens.com> 211558763ddd set the default uart port base to 0x3f8 for all x86 demo cells, which broke all demos which had a default of 0x2f8. Change the cell configs of all but pci-config. That one serves as example for command line parameters. Re

Re: Orange Pi bringup - 2nd Try

2017-05-30 Thread Henning Schild
Am Fri, 26 May 2017 20:01:46 -0700 schrieb John Parker : > Ok... thanks for the tip. So... now with a patched kernel and > referencing a full source tree. I get another error. > > johnp@orangepizero:~/jailhouse$ sudo make > KDIR=/home/johnp/orange-pi-4.11/ > DTC

Re: [RFC PATCH 00/18] PSCI support for ARM inmates

2017-05-24 Thread Henning Schild
Am Tue, 23 May 2017 22:30:17 +0200 schrieb Ralf Ramsauer : > Hi, > > this RFC series adds PSCI support for ARM inmates. > > A new psci-demo inmate boots a secondary CPU and issues SGIs back and > forth. After some rounds, it shuts down the secondary CPU again. >

Re: [PATCH 100v4] driver: (request|release)_mem_region for hypervisor memory

2017-05-22 Thread Henning Schild
ser did not specify memmap on x86 or did not modify the device > tree on ARM. We could do the same for inmate memory, at least the > parts we load. But that would be a little more complex. For now that > will cover the common case where the reservation is simply missing. > > Signed-off-by

[PATCH 100v4] driver: (request|release)_mem_region for hypervisor memory

2017-05-22 Thread henning . schild
From: Henning Schild <henning.sch...@siemens.com> Using these kernel functions we can officially mark the hypervisor memory as such. It will create a new entry in /proc/iomem and it will fail if another kernel subsystem already claimed that memory. i.e. if the user did not specify memmap

[PATCH] arm64: fix compilation with recent gcc

2017-05-22 Thread henning . schild
From: Henning Schild <henning.sch...@siemens.com> fixes -Werror=unused-value problem Signed-off-by: Henning Schild <henning.sch...@siemens.com> diff --git a/hypervisor/arch/arm64/mmio.c b/hypervisor/arch/arm64/mmio.c --- a/hypervisor/arch/arm64/mmio.c +++ b/hypervisor/arch/arm64/mmi

Re: Running ivshmem-demo in Jetson TK1.

2017-05-19 Thread Henning Schild
Am Fri, 19 May 2017 07:15:17 -0700 schrieb jonas <jo...@retotech.se>: > Den fredag 19 maj 2017 kl. 13:13:15 UTC+2 skrev Henning Schild: > > Am Fri, 19 May 2017 03:22:05 -0700 > > schrieb jonas <jo...@retotech.se>: > > > > > Den fredag 19 maj 20

Re: Running ivshmem-demo in Jetson TK1.

2017-05-19 Thread Henning Schild
Hey, i think you should talk to Jonas because he is almost there. Maybe you guys can exchange code. If you are not subscribed check out the archive to read what happened. http://jailhouse-dev.narkive.com/ Henning Am Fri, 19 May 2017 06:40:32 -0700 schrieb Hari Krishnan :

Re: Running ivshmem-demo in Jetson TK1.

2017-05-19 Thread Henning Schild
Am Fri, 19 May 2017 03:22:05 -0700 schrieb jonas <jo...@retotech.se>: > Den fredag 19 maj 2017 kl. 11:22:06 UTC+2 skrev Henning Schild: > > Am Thu, 18 May 2017 14:42:20 -0700 > > schrieb jonas <jo...@retotech.se>: > > > > > > > > >

Re: Running ivshmem-demo in Jetson TK1.

2017-05-19 Thread Henning Schild
Am Thu, 18 May 2017 14:42:20 -0700 schrieb jonas : > > > > > Hi again, > > > > > > Let's assume that I want to modify > > > jailhouse/inmates/demos/arm/gic-demo.c to also handle ivshmem > > > interrupts generated by the hypervisor to the bare-metal cell when > > > writing

test

2017-05-18 Thread [ext] Henning Schild
From: Henning Schild <henning.sch...@siemens.com> From: Henning Schild <henning.sch...@siemens.com> Sorry for the SPAM -- You received this message because you are subscribed to the Google Groups "Jailhouse" group. To unsubscribe from this group and stop receiving emails

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread Henning Schild
look at IVSHMEM_REG_* in ivshmem.c. > > > > > > > > Getting an IRQ sent to the inmate will be more tricky, you > > > > > will need to program the GIC where the x86 code does > > > > > "int_set_handler". The gic-demo should give a clue.

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread Henning Schild
Am Wed, 17 May 2017 12:45:19 +0200 schrieb "[ext] Henning Schild" <henning.sch...@siemens.com>: > Am Wed, 17 May 2017 02:13:24 -0700 > schrieb jonas <jo...@retotech.se>: > > > Den tisdag 16 maj 2017 kl. 16:54:35 UTC+2 skrev Henning Schild: > > &g

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread Henning Schild
Am Wed, 17 May 2017 02:13:24 -0700 schrieb jonas <jo...@retotech.se>: > Den tisdag 16 maj 2017 kl. 16:54:35 UTC+2 skrev Henning Schild: > > You do not need to know the number, the uio-driver knows it. And the > > bare metal inmate does not need to know it sin

Re: Running ivshmem-demo in Jetson TK1.

2017-05-16 Thread Henning Schild
t just makes the ressources of the "hardware" visible to userland. I suggest you have a look at the jailhouse specific README. https://github.com/henning-schild/ivshmem-guest-code/blob/jailhouse/README.jailhouse If you did not come across this file yet you might be on the wrong branch

Re: About inter-cell communication

2017-05-16 Thread Henning Schild
Am Tue, 16 May 2017 15:29:27 +0200 schrieb Claudio Scordino : > Dear all, > > I have a few questions about the (current and next) inter-cell > communication mechanism. If you look into the archive you will find Mails from Jan describing the direction we want to go. The

Re: [PATCH] tools: cell-linux: adjust entry points

2017-05-11 Thread Henning Schild
Am Thu, 11 May 2017 14:15:28 +0200 schrieb Ralf Ramsauer : > Loader location might be non-zero for ARM systems. > > Signed-off-by: Ralf Ramsauer > --- > tools/jailhouse-cell-linux | 26 -- > 1 file

<    1   2   3   4   >