Re: Jailhouse: enter_hypervisor returns -ENOMEM

2022-11-14 Thread Henning Schild
Am Sun, 13 Nov 2022 22:24:45 + schrieb Karim Manaouil : > Hi Ralf, > > Thanks for the reply! > > >Did you use jailhouse-config-create? > > I am using `jailhouse config create` to generate the sysconfig.c file. > > >You can use the --mem-hv option to > increate the memory. Try, for exam

Re: NXP LS1043

2022-10-27 Thread Henning Schild
I ran it successfully on that board years ago. There was some collaboration with NXP at the time and the files you seen in the tree have been contributed by NXP. So support is present and good. However DPAA can not be partitioned so you get say ... 4 totally independent NICs with cells that do not

Re: Ask for help,about cpu down after jailhouse enable。。

2022-08-11 Thread Henning Schild
Am Wed, 10 Aug 2022 23:29:16 -0700 (PDT) schrieb star sun : > i want make jailhouse working in one phone with 4 cortex-a53 cpu. > > I feel like I've successfully executed jailhouse enbale. > unfortunately, there is a kernel panicwhen i down one cpu for a > non-root-cell during jialhouse cel

Re: Troubles running jailhouse

2022-07-29 Thread Henning Schild
ia PATH. Henning > Thank you very much, > Sara > > El vie, 29 jul 2022 a las 12:44, Henning Schild > () escribió: > > > Am Fri, 29 Jul 2022 11:33:32 +0200 > > schrieb Sara Alonso : > > > > > Hi! > > > > > > I am trying to run jai

Re: Troubles running jailhouse

2022-07-29 Thread Henning Schild
Am Fri, 29 Jul 2022 11:33:32 +0200 schrieb Sara Alonso : > Hi! > > I am trying to run jailhouse in a zcu102 board following this > tutorial: > https://github.com/siemens/jailhouse/blob/master/Documentation/setup-on-zynqmp-zcu102.md > But I am new at this and I have some troubles. > > I have buil

Re: Adding another vpci

2022-01-11 Thread Henning Schild
Am Mon, 10 Jan 2022 13:31:16 -0800 (PST) schrieb Moustafa Nofal : > Hi, > I intend to add another Linux on Raspberry Pi4. So, I added also a > memory region on rpi4.c and extended the size of mem_regions by, and > managed to get working. I added a pci device, and extended the array > by one, and

Re: HELP

2022-01-05 Thread Henning Schild
u did set CONFIG_IVSHMEM_NET for that kernel. You did configure your cells with the respective virtual PCI devices and memory regions. Best check out https://github.com/siemens/jailhouse-images to see how to plug things together. regards, Henning > Best regards, > Moustafa Noufale > On M

Re: Problem: system hangs

2021-11-04 Thread Henning Schild
Am Thu, 4 Nov 2021 11:47:00 + schrieb Raimundo Sagarzazu : > Hello all, > > I'm experiencing a "system hanging" problem when jalhouse is enabled. > It happens with just rootcell enabled, no need to start inmate cells. > I've been working on it for several weeks trying to have at least an > er

Re: Jailhouse cell linux

2021-11-02 Thread Henning Schild
Am Mon, 1 Nov 2021 00:55:07 -0700 (PDT) schrieb Moustafa Nofal : > > > > >Might well be very little documentation on that. The code would be > > >under tools/jailhouse-cell-linux which might give a little more > > >insight on what it does and how. > > > > >And "./jailhouse-cell-linux --help"

Re: Jailhouse cell linux

2021-10-25 Thread Henning Schild
Am Sun, 24 Oct 2021 23:26:06 -0700 (PDT) schrieb Moustafa Nofal : > I was not able to find a documentation about this jailhouse command > "Jailhouse cell linux" , what I understand it takes the following > arguments: > - linux configuration file .cell > - kernel image .img > - device tree file .

Re: Building Jailhouse on STM32MP157A

2021-10-22 Thread Henning Schild
Am Fri, 22 Oct 2021 02:45:44 -0700 (PDT) schrieb Andrea Marchetta : > Hi, i'm currently trying to use jailhouse on my stm32mp157a-dk1 kit > for a research project. My main concerns are the followings: > - first off, i've found the device tree for my board, but i'm > struggling to convert it to a s

Re: [PATCH] customizations: include wildcard into SRC_URI

2021-06-10 Thread Henning Schild
Am Tue, 8 Jun 2021 07:28:19 +0200 schrieb Jan Kiszka : > On 07.06.21 20:07, Henning Schild wrote: > > That kind of tells bitbake that the file is "optional" and it will > > not warn about it missing when parsing the recipes. It would find > > it missing in the ins

Re: [PATCH] customizations: include wildcard into SRC_URI

2021-06-07 Thread Henning Schild
C_URI entry .bash_history-siemens-ipc427e: file could not be found" Henning Am Mon, 7 Jun 2021 20:07:41 +0200 schrieb Henning Schild : > That kind of tells bitbake that the file is "optional" and it will not > warn about it missing when parsing the recipes. It would find i

[PATCH] customizations: include wildcard into SRC_URI

2021-06-07 Thread Henning Schild
e warnings when not having a config for the package and their machine. Signed-off-by: Henning Schild --- recipes-core/customizations/customizations.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes-core/customizations/customizations.bb b/recipes-core/cust

Re: Installation error in Fedora

2021-05-18 Thread Henning Schild
Am Tue, 18 May 2021 13:32:00 +0530 schrieb Prashant Kalikotay : > Hello All, > I am trying to install Jailhouse in Fedora, X86 system. > While running make I run into these errors: > [prashant@fedora jailhouse]$ make > CC [M] /home/prashant/jailhouse/driver/cell.o > CC [M] /hom

Re: Windows on Jailhouse

2021-05-10 Thread Henning Schild
Am Mon, 10 May 2021 17:24:25 +0200 schrieb Ralf Ramsauer : > Hi Bram, > > On 10/05/2021 16:19, Bram Hooimeijer wrote: > > Dear Jailhouse community, > > > > Is there anyone who has tried to get Windows running in a Jailhouse > > cell? > > > > Given that Windows is often used as HMI, it would be

Re: Can Jailhouse work with CentOS

2021-05-10 Thread Henning Schild
There is no reason for "sudo" for a simple "make". It is likely you are missing kernel sources, or tools that the build process needs. Or - given that distro - things are outdated. Jailhouse does not need much, but also centos does not offer much ;) try a fresh clone, no "sudo", "make V=1 -j1" He

Re: HELP

2021-03-29 Thread Henning Schild
Am Sun, 28 Mar 2021 22:16:14 +0800 (GMT+08:00) schrieb 曹宏鹏 : > Dear sir: > > As we all know, the cell could communicate with root cell by ivshmem > in Jailhouse. And there is a virtual Network Interface Card(NIC) on > non-root cell. When I run Jailhouse on my raspberry Pi 4 model b, I > was succe

Re: Invalid PCI config write, port cfc, size 1, address port: 8000f940

2021-03-12 Thread Henning Schild
Am Tue, 23 Feb 2021 14:26:32 + schrieb Raimundo Sagarzazu : > Yes, I was trying it and it seems that it works. Tight ... chicken ;) Henning > Thankyou, > > Rai. > > De: jailhouse-dev@googlegroups.com > En nombre de Jan Kiszka Enviado el: martes, 23 de febrero de 2021 > 14:21 Para: Raimun

Re: [EXT] Re: [PATCH v1 0/3] Jailhouse: Add DPAA support for NXP ls1043ardb platform

2021-02-06 Thread Henning Schild
Am Thu, 4 Feb 2021 02:33:20 + schrieb Hongbo Wang : > > > .../dts/inmate-ls1043a-rdb-fman-ucode.dtsi| 1030 > > + > > > configs/arm64/dts/inmate-ls1043a-rdb.dts | 767 +++- > > > configs/arm64/ls1043a-rdb-linux-demo.c| 57 +- > > > 3 files chang

Re: ivshmem-net issue

2021-01-28 Thread Henning Schild
On Thu, 28 Jan 2021 07:03:51 + Peng Fan wrote: > > Subject: Re: ivshmem-net issue > > > > On Thu, 28 Jan 2021 01:28:32 + > > Peng Fan wrote: > > > > > > Subject: Re: ivshmem-net issue > > > > > > > > On Wed, 27 Jan 2021 09:08:28 + > > > > Peng Fan wrote: > > > > > > > > > Hi J

Re: ivshmem-net issue

2021-01-27 Thread Henning Schild
On Thu, 28 Jan 2021 01:28:32 + Peng Fan wrote: > > Subject: Re: ivshmem-net issue > > > > On Wed, 27 Jan 2021 09:08:28 + > > Peng Fan wrote: > > > > > Hi Jan, > > > > > > When booting inmate Linux, I have ivshmem-net configured. In root > > > cell it shows as eth2. > > > > > > I moni

Re: ivshmem-net issue

2021-01-27 Thread Henning Schild
On Wed, 27 Jan 2021 09:08:28 + Peng Fan wrote: > Hi Jan, > > When booting inmate Linux, I have ivshmem-net configured. In root > cell it shows as eth2. > > I monitor system network, and see eth2 is assigned a random address. This is not "random", this is where some dhcp-clients end up when

Re: License of custom cell configs

2020-07-08 Thread Henning Schild
On Wed, 8 Jul 2020 22:35:58 +0900 Yang Chung Fan wrote: > Hi, > > Thank you for your quick response. > > I think BSD is good for our situation. > I will stick to that. > > A follow up question, > I am porting the linux ivshmem_net driver to an RTOS and want to > distribute it with the RTOS sou

Re: License of custom cell configs

2020-07-08 Thread Henning Schild
Hi, On Wed, 8 Jul 2020 04:49:38 -0700 (PDT) Chung-Fan Yang wrote: > Hi, > > I want to ask a silly question. Not silly, valid! > Is there any restrictions on the cell configs source files, including > those hand crafted and these generated by jailhouse command line tool > ? Kind of, you basi

Re: jailhouse-config-create: creates many overlapping memory regions

2020-06-25 Thread Henning Schild
Am Fri, 19 Jun 2020 13:22:12 +0200 schrieb "[ext] Jan Kiszka" : > On 19.06.20 13:08, contact@gmail.com wrote: > > This issue may be in the works / known -- just to add another > > example. > > > > On the this x86 box (Edge Up-Squared, similar device class like the > > existing nuc6cay), jailh

Re: [PATCH V2 1/2] Cell configs for imx8mq EVK board.

2020-03-27 Thread Henning Schild
On Thu, 26 Mar 2020 21:20:24 +0800 Alice Guo wrote: > Signed-off-by: Alice Guo > --- > configs/arm64/imx8mq-inmate-demo.c | 70 +++-- > configs/arm64/imx8mq-linux-demo.c | 158 > + configs/arm64/imx8mq.c | > 93 +++-- 3 files changed,

Re: Difference in execution duration between root cell and inmate for same code

2020-02-14 Thread Henning Schild
Hi Michael, thanks for sharing that with us. Maybe the whole story points to a gap in the docs? In that case please let us know how to improve them, otherwise happy hacking! Henning On Fri, 14 Feb 2020 13:12:51 -0800 Michael Hinton wrote: > Thanks for all the help. I just want to give an updat

Re: Difference in execution duration between root cell and inmate for same code

2020-02-07 Thread Henning Schild
Am Thu, 6 Feb 2020 11:00:29 -0800 schrieb Michael Hinton : > Hi Henning, > > On Monday, January 27, 2020 at 12:16:08 AM UTC-7, Henning Schild > wrote: > > > > Ok, so we are just looking for differences between the inmate and > > the linux as non-root cell, becaus

Re: Difference in execution duration between root cell and inmate for same code

2020-01-31 Thread Henning Schild
On Thu, 30 Jan 2020 09:41:08 -0800 Michael Hinton wrote: > On Monday, January 27, 2020 at 12:16:08 AM UTC-7, Henning Schild > wrote: > > > > Ok, so we are just looking for differences between the inmate and > > the linux as non-root cell, because the jailhouse/virtua

Re: mem_region_request failed for hypervisor memory in jetson-tx2 kit

2020-01-29 Thread Henning Schild
Sending code around as html does not really help, especially since i guess that you have a formatting problem with your bootloader configuration. My guess is that you want to "append" to the APPEND line and not create a new line behind it. You might want to add a completely new entry for that. LA

Re: Difference in execution duration between root cell and inmate for same code

2020-01-26 Thread Henning Schild
On Sat, 25 Jan 2020 23:07:53 -0800 Michael Hinton wrote: > Hi Henning, > > On Thursday, January 23, 2020 at 5:15:08 AM UTC-7, Henning Schild > wrote: > > > > Thanks, > > > > that is a lot of information. I would say that is CPU and memory > > bound wor

Re: Difference in execution duration between root cell and inmate for same code

2020-01-23 Thread Henning Schild
; workload code is being compiled to different instructions for the > inmate vs. Linux, etc. > > Sorry for all the detail, but I am grasping at straws at this point. > Any ideas at what I could look into are appreciated. > > Thanks, > Michael > > On Monday, January 20, 2020

Re: Difference in execution duration between root cell and inmate for same code

2020-01-20 Thread Henning Schild
On Sun, 19 Jan 2020 23:45:46 -0800 Michael Hinton wrote: > Hello, > > I have found that running code in an inmate is a lot slower than > running that same code in the root cell on my x86 machine. I am not > sure why. Can you elaborate on "code" and "a lot"? Maybe roughly tell us what your testc

Re: [PATCH 2/2] tools: gcov: Adjust Gcov counter count for GCC versions >= 7.0

2019-12-20 Thread Henning Schild
Hi Andrej, nice to see that you exercise that feature of jailhouse! The two commits LGTM. You modify a section that is enclosed with a "heavily inspired by linux/kernel/gcov/gcc_4.7.c"-comment so i would suggest to maybe include a reference to the kernel commits that you are pulling in here. I

Re: Adding a shared tracing mechanism

2019-12-13 Thread Henning Schild
memory. And you would have an abstraction that should work on any hypervisor and even bare-metal. So it would be more sustainable for your RTOS and would allow for comparisons, i.e. jailhouse vs. bare-metal. regards, Henning Am Fri, 13 Dec 2019 08:58:25 +0100 schrieb "[ext] Henning Schild&quo

Re: Adding a shared tracing mechanism

2019-12-12 Thread Henning Schild
Am Fri, 13 Dec 2019 08:08:32 +0100 schrieb Jan Kiszka : > On 12.12.19 16:43, Guido Roncarolo wrote: > > Hello All, > > > > I am trying to add a small tracing mechanism developed for a RTOS > > inside jailhouse. > > Henning started to look into such a feature as well, but those were > only earl

Re: v0.9 vs v1.1 interrupt latency raise

2019-10-25 Thread Henning Schild
Well you only have soo many shared ressources and if it is not additional exits/interrupts then it is contention on shared ressources. We are probably talking about caches, TLBs and buses. You should be able to use i.e. "perf" on Linux to read out hardware performance counters. And there you migh

Re: [PATCH v4 00/13] pyjailhouse: x86: Implement config generator for port I/O

2019-10-17 Thread Henning Schild
Hi, that is a long standing "issue" and we once had a chinese student working on that as well. He never finished though ... I did not look into all details but the insight that the existing code for memory can be reused for ports was in there ... inside the kernel it is also "the same". I only w

Re: Compilation error (jailhouse.c) in Yocto build

2019-09-20 Thread Henning Schild
uild system does not have to be yocto, check out jailhouse-images ... using isar as build system. Henning Am Wed, 11 Sep 2019 14:35:22 +0100 schrieb Peter Smith : > Thanks, I found some other layers to work from ( > https://github.com/henning-schild-work/meta-jailhouse) also. I > understan

Re: [PATCH] driver: sysfs: fix parameter usage

2019-09-20 Thread Henning Schild
Am Fri, 20 Sep 2019 16:59:14 +0200 schrieb Ralf Ramsauer : > On 9/20/19 4:56 PM, Ralf Ramsauer wrote: > > find_cell_cpu gets a cell as parameter, but ignores it. It only uses > > root_cell. > > > > This bug never had any consequences, as this routine is only one > > single caller, and always gets

Re: Orange Pi Zero Jailhouse Yocto Integration

2019-09-19 Thread Henning Schild
Am Sat, 17 Aug 2019 16:46:37 +0300 schrieb Cevat Bostancıoğlu : > Hello, it's been a 3 days and i am still trying to compile, i changed > yocto versions, gcc compiler versions, external toolchain, checked > against debian build etc. but nothing worked. > > i cant understand why this is compiled i

Re: [jh-images][PATCH 05/13] Add recipe for building ZynqMP PMU firmware

2019-09-05 Thread Henning Schild
Am Wed, 4 Sep 2019 17:52:59 +0200 schrieb Jan Kiszka : > On 04.09.19 15:22, Henning Schild wrote: > > Am Wed, 4 Sep 2019 13:40:34 +0200 > > schrieb Jan Kiszka : > > > >> On 04.09.19 11:17, Henning Schild wrote: > >>> Am Tue, 3 Sep 2019 07:5

Re: [jh-images][PATCH 02/13] build-images: Use latest kas-docker internally

2019-09-04 Thread Henning Schild
Am Wed, 4 Sep 2019 13:38:18 +0200 schrieb Jan Kiszka : > On 04.09.19 11:15, Henning Schild wrote: > > Am Tue, 3 Sep 2019 07:59:14 +0200 > > schrieb "[ext] Jan Kiszka" : > > > >> From: Jan Kiszka > >> > >> By now, more mature st

Re: [jh-images][PATCH 05/13] Add recipe for building ZynqMP PMU firmware

2019-09-04 Thread Henning Schild
Am Wed, 4 Sep 2019 13:40:34 +0200 schrieb Jan Kiszka : > On 04.09.19 11:17, Henning Schild wrote: > > Am Tue, 3 Sep 2019 07:59:17 +0200 > > schrieb "[ext] Jan Kiszka" : > > > >> From: Jan Kiszka > >> > >> Will replace the old binary pa

Re: [jh-images][PATCH 05/13] Add recipe for building ZynqMP PMU firmware

2019-09-04 Thread Henning Schild
Am Tue, 3 Sep 2019 07:59:17 +0200 schrieb "[ext] Jan Kiszka" : > From: Jan Kiszka > > Will replace the old binary package so far used for the Ultra96. > > Signed-off-by: Jan Kiszka > --- > recipes-bsp/zynqmp-pmufw/files/debian/compat | 1 + > recipes-bsp/zynqmp-pmufw/files/debian/contr

Re: [jh-images][PATCH 02/13] build-images: Use latest kas-docker internally

2019-09-04 Thread Henning Schild
Am Tue, 3 Sep 2019 07:59:14 +0200 schrieb "[ext] Jan Kiszka" : > From: Jan Kiszka > > By now, more mature starting of the kas-isar container is achieved by > using upstream kas-docker. E.g., build-images.sh still forwards SHELL > unconditionally, breaking on hosts with shells the container does

Re: Interrupt Latency in RTOS inmate cell

2019-09-03 Thread Henning Schild
sfs or proc, there is no IO and no DMA. What is your storage backing anyways? NFS, some filesystem on some mass storage ? Maybe your Linux UART has some shared resources with with the GPIO? Can you silence the UART and operate that Linux with i.e. ssh? Henning > Thanks, > > Nir.

Re: Interrupt Latency in RTOS inmate cell

2019-09-02 Thread Henning Schild
ices with the root cell? (e.g. > debug UART) > > Ralf > > > > > On Monday, September 2, 2019 at 5:51:24 PM UTC+3, Henning Schild > > wrote: > > > > Am Mon, 2 Sep 2019 06:12:00 -0700 > > schrieb Nir Geller >: > > > >

Re: Interrupt Latency in RTOS inmate cell

2019-09-02 Thread Henning Schild
Am Mon, 2 Sep 2019 06:12:00 -0700 schrieb Nir Geller : > I created a kernel module that catches/releases a spinlock and > disables/enables preemption, and it had no observable effect on the > jitter, however, > the operations insmod and rmmod definitely cause spikes in jitter. > > Any pointers?

Re: Orange Pi Zero Jailhouse Yocto Integration

2019-08-13 Thread Henning Schild
Hi, i did not look into the problem yet. But my jailhouse layer for yocto is on github. https://github.com/henning-schild-work/meta-jailhouse Have a look at the branch henning/staging for patches to get a more recent jailhouse to work. Henning Am Tue, 13 Aug 2019 14:31:36 +0300 schrieb Cevat

Re: [PATCH v2 2/2] pyjailhouse: x86: implement pio_bitmap generator

2019-06-28 Thread Henning Schild
Hey Andrej, this feature was already proposed and discussed before, but never resulted in patches getting merged. https://groups.google.com/d/topic/jailhouse-dev/BSfMKio91BQ/discussion I did not look into it yet. But you might want to reread that thread, making sure your proposal covers what was

Re: Jailhouse enable hangs on AMD EPYC 7351P

2019-06-23 Thread Henning Schild
Am Fri, 21 Jun 2019 07:18:14 -0700 schrieb Adam Przybylski : > Am Freitag, 21. Juni 2019 15:54:15 UTC+2 schrieb Henning Schild: > > Am Fri, 21 Jun 2019 14:51:30 +0200 > > schrieb Ralf Ramsauer: > > > > > Hi, > > > > > > On 6/21/19 2:22

Re: Jailhouse enable hangs on AMD EPYC 7351P

2019-06-21 Thread Henning Schild
Am Fri, 21 Jun 2019 14:51:30 +0200 schrieb Ralf Ramsauer : > Hi, > > On 6/21/19 2:22 PM, Valentine Sinitsyn wrote: > > Hi Adam, > > > > On 21.06.2019 17:16, Adam Przybylski wrote: > >> Dear Jailhouse Community, > >> > >> I am trying to enabled Jailhouse on the AMD EPYC 7351P 16-Core > >> Proce

Re: Ivshmem-demo interrupt

2019-05-28 Thread Henning Schild
Am Tue, 28 May 2019 06:22:05 -0700 schrieb : > Hello everyone, > > I'm trying to run the ivshmem-demo on a lanner NCA-510A. The inmate > cell seems to be working well. However, I can't get the interruptions > between the cells to work. Is this due to a configuration problem? > (You will find att

Re: [PATCH] Scripts: Fix for Parsing DMAR Region under Reserved Section

2019-05-07 Thread Henning Schild
Am Mon, 6 May 2019 12:26:42 -0700 schrieb Hakkı Kurumahmut : > Hi Henning, > > I have write new patch but I have not test it more. But it is more > suitable for your advices. > That one looks very good and you can propose it with "git format-patch --subject prefix PATCHv2" after a few more thin

Re: [PATCH] Scripts: Fix for Parsing DMAR Region under Reserved Section

2019-05-06 Thread Henning Schild
Hi Hakki, maybe you can comment inline as well. So everybody can see what part of the mail you refer to. Now as far as i can tell you are explaining the difference of call by value and by ref and how that affects return values. I think i already know the basics of that. My comment just was that

Re: [PATCH] Scripts: Fix for Parsing DMAR Region under Reserved Section

2019-05-06 Thread Henning Schild
Hi Hakki, you found the right spot to exclude something from the generally blacklisted "reserved" but i still have a few comments, find them inline. Am Sun, 5 May 2019 12:35:49 -0700 schrieb Hakkı Kurumahmut : > While kernel command parameters are intel_iommu=on intremap=on at > some machines, c

Re: [PATCH 5/5] pyjailhouse: let the generator produce speaking names for PCI caps

2019-05-02 Thread Henning Schild
Am Thu, 2 May 2019 16:34:35 +0200 schrieb Ralf Ramsauer : > On 5/2/19 4:14 PM, Henning Schild wrote: > > Am Thu, 2 May 2019 12:19:10 +0200 > > schrieb Ralf Ramsauer : > > > >> Hi, > >> > >> On 5/2/19 10:31 AM, Henning Schild wrote: > >&

Re: [PATCH 1/5] configs: define ARRAY_SIZE in cell-config.h

2019-05-02 Thread Henning Schild
Am Thu, 2 May 2019 12:10:34 +0200 schrieb Ralf Ramsauer : > Hi, > > On 5/2/19 10:23 AM, Henning Schild wrote: > > Hi Ralf, > > > > good idea! What happens if i through my "legacy" config on that? In > > that case i would expect one define inside +

Re: [PATCH 5/5] pyjailhouse: let the generator produce speaking names for PCI caps

2019-05-02 Thread Henning Schild
Am Thu, 2 May 2019 12:19:10 +0200 schrieb Ralf Ramsauer : > Hi, > > On 5/2/19 10:31 AM, Henning Schild wrote: > > Hi Ralf, > > > > redefining the "Enum" seems not too elegant. Did you look into ways > > to use the header from python? > > Dupli

Re: [PATCH 5/5] pyjailhouse: let the generator produce speaking names for PCI caps

2019-05-02 Thread Henning Schild
Hi Ralf, redefining the "Enum" seems not too elegant. Did you look into ways to use the header from python? The "defines" should be really easy to parse without even using a special python library. The only real problem might be locating the header, it would need to be installed when running "ins

Re: [PATCH 1/5] configs: define ARRAY_SIZE in cell-config.h

2019-05-02 Thread Henning Schild
Hi Ralf, good idea! What happens if i through my "legacy" config on that? In that case i would expect one define inside + one in the header. The header will win, will the config-one cause an issue. I would expect at least a warning, which is probably fine. Henning Am Tue, 30 Apr 2019 23:45:00 +0

Re: jailhouse config create sysconfig.c mem_region doesn't match /proc/iomem

2019-04-18 Thread Henning Schild
Am Thu, 18 Apr 2019 04:32:19 -0700 schrieb : > Hello, > > > I just start to try to install jailhouse on my card with ubuntu > 16.04.3. I actually still found such an old thing in our lab. Kernel 3.13 ... is the default on that Distribution. Which kernel version are you using? I do not know th

Re: Non-root linux with storage devices?

2019-04-18 Thread Henning Schild
Hi, i have done that before but can not point you to the code. You have two options: 1. assign a complete storage device - you will need multiple truly seperate devices/conrtrollers 2. use a network filesystem (i.e. nfs) over a virtual network - your non-root will depend on root to be available

Re: How are we supposed to setup sysconfig?

2019-04-12 Thread Henning Schild
Am Sun, 7 Apr 2019 21:25:52 -0700 schrieb yshala : > FATAL: Invalid PIO write, port: 0 size: 2 > RIP: 0x RSP: 0xfffa FLAGS: 93 > RAX: 0xc9cd RBX: 0x RCX: > 0x RDX: 0x RSI: 0x > RDI: 0x00

[siemens/jailhouse] c4963c: tools: hardware-check: Fix duplicate variable name...

2019-04-01 Thread Henning Schild
ens/jailhouse/commit/eeed9ece00596cbaa332feaffe6166d6a694100e Author: Henning Schild Date: 2019-04-01 (Mon, 01 Apr 2019) Changed paths: M configs/arm64/miriac-sbc-ls1046a.c Log Message: --- configs: miriac-sbc-ls1046a: remove mem region numbering This commit just changes the comments and

Re: [PATCH 1/3] configs: miriac-sbc-ls1046a: remove mem region numbering

2019-03-27 Thread Henning Schild
Am Tue, 26 Mar 2019 15:25:33 +0100 schrieb "[ext] Henning Schild" : > Hey, > > the first two commits are purely cosmetic, and p3 fixes an issue i saw > on a ls1043a-rdb. The whole series is not tested since i do not have > the hardware to do so. I could also prepare

Re: Running on AMD Ryzen

2019-03-27 Thread Henning Schild
Am Wed, 27 Mar 2019 17:15:37 +0100 schrieb Ralf Ramsauer : > On 3/26/19 6:03 PM, Jan Kiszka wrote: > > On 26.03.19 17:41, Ralf Ramsauer wrote: > >> Hi Jan, > >> > >> On 3/25/19 4:03 PM, Jan Kiszka wrote: > >>> On 25.03.19 14:18, Andrej Utz wrote: > Greetings Jailhouse developers, >

Re: FATAL: Invalid PIO read, port: 934 size: 1

2019-03-27 Thread Henning Schild
Am Tue, 26 Mar 2019 21:17:45 -0700 schrieb : > Hello, > > I used the root config generator to create a root config for my > x86-64 Dell Inspiron running Kubuntu 18.04 (kernel 4.14). However, > starting up the root cell usually causes the entire laptop to freeze > soon after. > > I don’t have acc

Re: [PATCH 1/3] configs: miriac-sbc-ls1046a: remove mem region numbering

2019-03-26 Thread Henning Schild
nable". Test command from a remote machine could be "fping -l ls1043 -b 1200 -p 10" After the patch the packet loss should get back down to 0% even when jailhouse is enabled. Henning Am Tue, 26 Mar 2019 15:19:57 +0100 schrieb Henning Schild : > From: Henning Schild > >

[PATCH 1/3] configs: miriac-sbc-ls1046a: remove mem region numbering

2019-03-26 Thread Henning Schild
From: Henning Schild This commit just changes the comments and removes the indices from the the region comments. These numbers make it hard to add or remove regions without touching most of the file. Signed-off-by: Henning Schild --- configs/arm64/miriac-sbc-ls1046a.c | 100

[PATCH 2/3] configs: miriac-sbc-ls1046a: move IVSHMEM region to end of array

2019-03-26 Thread Henning Schild
From: Henning Schild Now that we are not counting anymore, find the one we need to index from the ARRAY_SIZE. Signed-off-by: Henning Schild --- configs/arm64/miriac-sbc-ls1046a.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/configs/arm64/miriac-sbc

[PATCH 3/3] configs: miriac-sbc-ls1046a: adjust memory flags for qbman portals

2019-03-26 Thread Henning Schild
From: Henning Schild The qbman portal regions are split into two, cache-inhibited and cache-enabled. (see DPAA_PORTAL_C[IE] in drivers/soc/fsl/qbman/) When the underlying memory is not mapped correctly, like it was before this commit, you will see TX errors and loose a significant amount of

Re: [PATCH 0/4] Add Microsys miriac SBC-LS1046A board support

2019-03-07 Thread Henning Schild
Am Thu, 7 Mar 2019 16:40:44 +0100 schrieb Andreas Messerschmid : > Hi Henning, > > On 3/7/19 2:32 PM, Henning Schild wrote: > > Hi Andreas, > > > > for how long did you test running jailhouse on the device? And did > > you operate it via serial or network? &

Re: [PATCH 0/4] Add Microsys miriac SBC-LS1046A board support

2019-03-07 Thread Henning Schild
Hi Andreas, for how long did you test running jailhouse on the device? And did you operate it via serial or network? I am currently enabling an ls1043 and network breaks after just creating a second cell, not even loading or starting it. I guess in that line i would also like to know which kernel

Re: gdb inmate

2019-03-06 Thread Henning Schild
Am Tue, 5 Mar 2019 19:28:25 +0100 schrieb "[ext] Jan Kiszka" : > On 05.03.19 18:45, Tim Michals wrote: > > Is it possible to use gdb from one inmate to debug another inmate? > > For example, using Linux to debug FreeRTOS Application? > > There is no Jailhouse support for that. If the inmate has

Re: Inmate not receiving interrupt from root cell

2019-03-01 Thread Henning Schild
Am Fri, 1 Mar 2019 11:27:35 +0100 schrieb "[ext] Jan Kiszka" : > On 01.03.19 09:56, michael.g.hin...@gmail.com wrote: > > Hello, > > > > I've got most everything working with ivshmem: the inmate is > > modifying shared memory and sending interrupts to the root cell, > > the root cell is receiving

Re: [PATCH] driver: invoke jailhouse_firmware_free when disabling jailhouse

2019-02-19 Thread Henning Schild
That is on me! Good catch but it is intentional. Henning On Tue, 19 Feb 2019 02:30:52 + Peng Fan wrote: > After `jailhouse disable`, there is still an IO entry from /proc/iomem > for jailhouse, so call jailhouse_firmware_free when disabling > jailhouse for fix this. Also drop the call to ja

Re: Jailhouse Cell Creation Error // Unhandled MSR write: c8f

2019-02-13 Thread Henning Schild
Am Wed, 13 Feb 2019 07:54:54 + schrieb Burak Atalay : > Hello everyone, > > I am trying to run a non-root Linux cell, however I am encountering > an error. I followed the documentation and I am using your modified > Linux kernel from queues/jailhouse. When I issue the command > "jailhouse cel

Re: How do I get ivshmem-demo working with Jailhouse Images?

2019-02-11 Thread Henning Schild
Am Fri, 8 Feb 2019 21:26:29 -0800 schrieb : > On Friday, February 8, 2019 at 8:40:18 AM UTC-7, Henning Schild wrote: > > Am Thu, 7 Feb 2019 16:53:41 -0800 > > schrieb : > > > > > On Wednesday, February 6, 2019 at 5:59:09 AM UTC-7, Henning Schild > > > wr

Re: How do I get ivshmem-demo working with Jailhouse Images?

2019-02-08 Thread Henning Schild
Am Thu, 7 Feb 2019 22:11:45 -0800 schrieb : > Hello, > > So I've been debugging uio_ivshmem.c with print statements, and I > think have a theory for what's going wrong: > > I believe the ivshem-net driver is being attached to the root cell's > ivshmem PCI device before the uio_ivshmem driver can

Re: How do I get ivshmem-demo working with Jailhouse Images?

2019-02-08 Thread Henning Schild
Am Thu, 7 Feb 2019 16:53:41 -0800 schrieb : > On Wednesday, February 6, 2019 at 5:59:09 AM UTC-7, Henning Schild > wrote: > > Am Tue, 5 Feb 2019 19:25:28 -0800 > > schrieb : > > > > > On Friday, February 1, 2019 at 12:32:40 AM UTC-7, J. Kiszka >

Re: How do I get ivshmem-demo working with Jailhouse Images?

2019-02-06 Thread Henning Schild
Am Tue, 5 Feb 2019 19:25:28 -0800 schrieb : > On Friday, February 1, 2019 at 12:32:40 AM UTC-7, J. Kiszka wrote: > > You likely want > > https://github.com/siemens/linux/commits/jailhouse-enabling/4.14 or > > the 4.19-variant that is jailhouse-prepared. That's what > > jailhouse-images is building

Re: [PATCH 0/4] Add Microsys miriac SBC-LS1046A board support

2019-01-29 Thread Henning Schild
Hi Andreas, thanks for sharing that! Do you happen to know if that will work for an fsl-ls1046a as well? I guess a dts diff should give a clue. If it does the target should probably be called fsl-ls1046a. We talked off list and i have those configs for an fsl-ls1043a. There is good config sharing

Re: Jailhouse demo not working on BananaPi BPI-M1

2019-01-23 Thread Henning Schild
Am Wed, 23 Jan 2019 04:12:39 -0800 schrieb Dan Avram : > miercuri, 23 ianuarie 2019, 12:30:41 UTC+2, Henning Schild a scris: > > Hi Henning, > > Thank you for the quick answer. > > > you could try an image created with > > https://github.com/siemens/jailhouse-imag

Re: Jailhouse demo not working on BananaPi BPI-M1

2019-01-23 Thread Henning Schild
Hi Dan, you could try an image created with https://github.com/siemens/jailhouse-images That will give you a reference image that is well tested and might not have the issue you ran into. Does the problem appear every time or just sometimes? Might be a race in the cpu offlining. Henning Am Wed

Re: Jailhouse Images Demo No Longer Works After Image Resize

2019-01-22 Thread Henning Schild
Am Mon, 21 Jan 2019 15:46:25 -0800 schrieb : > So here's what happened: I increased the memory from 1 GB to 4 GB in > the QEMU command (from `-m 1G` to `-m 4G`). The Jailhouse-images's > qemu-x86.cell root cell didn't like that. > > So I guess if I want to increase the memory to 4 GB, I'll need t

Re: jailhouse console setup

2019-01-18 Thread Henning Schild
Hi Stefan, i am not going to parse your screenshot. In fact i am not even sure if i am allowed to read that mail or if i need to send a fax ;). There is a project to assist people in building ready-to-use images, and a NUC is in there. While you might not be able to use the image on your NUC, you

Re: Remapping MSI interrupts of pci-e serial card

2019-01-15 Thread Henning Schild
Am Tue, 15 Jan 2019 04:09:03 -0800 schrieb Chung-Fan Yang : > > Did you regenerate the root cell config after adding the card? Or > > manually added the additional entries needed for it? Something went > > wrong in that area. > > I regenerated the config and cross checked with the working one.

[PATCH] core: Update comment according to recent change

2019-01-11 Thread Henning Schild
From: Henning Schild 37c7b05b21 renamed the flag JAILHOUSE_CON2_TYPE_ROOTPAGE, update that last remaining comment as well Signed-off-by: Henning Schild --- hypervisor/setup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/setup.c b/hypervisor/setup.c index

Re: ivshmem pci issue

2019-01-11 Thread Henning Schild
Am Fri, 11 Jan 2019 01:40:42 + schrieb Peng Fan : > Hi Jan, Henning > > We are trying to enable jailhouse with 4.1 ARM Linux Kernel with > ivshmem, however the uio_ivshmem driver uses some new APIs not > existed in 4.1 kernel. > > There two options to me, > 1. backport Linux pci code from c

Re: jailhouse enable gets stuck on LS1046a

2018-12-13 Thread Henning Schild
Hi, i have a ls1043 config that works on current master and a ls1046 config that worked on some older version. Will send it to you off list. Henning Am Wed, 12 Dec 2018 17:28:43 +0100 schrieb Andreas Messerschmid : > Hi all, > > I'm trying to bring up Jailhouse on a NXP Layerscape LS1046a base

Re: Linux inmate serial console issues

2018-12-07 Thread Henning Schild
Hi, that is the fault of systemd. Unlike the kernel it does not support multiple "console=" correctly. It just takes the first ... i think. And if you do not have your serial as that console, you will also not get a getty. Because those are magic services that systemd spawns looking the the kernel

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

2018-11-30 Thread Henning Schild
Am Thu, 29 Nov 2018 02:53:24 -0800 schrieb : > On Monday, January 15, 2018 at 9:04:57 AM UTC+1, jonas wrote: > > > > - it also seems you have added tools to the guest-code-repo but > > > they do not seem essential, but are mentioned in your docs > > > (shmem-pump) > > Yes, some very simple tool

Re: x86_64 Power management

2018-11-07 Thread Henning Schild
Am Wed, 7 Nov 2018 17:17:32 +0100 schrieb Jan Kiszka : > On 07.11.18 16:13, Henning Schild wrote: > > Am Tue, 6 Nov 2018 17:02:34 -0800 > > schrieb Chung-Fan Yang : > > > >> Hi, > >> > >> I am having some quextions about power management(PM)

Re: x86_64 Power management

2018-11-07 Thread Henning Schild
Am Tue, 6 Nov 2018 17:02:34 -0800 schrieb Chung-Fan Yang : > Hi, > > I am having some quextions about power management(PM) on x86. > As afr as I understand, there are C-states and P-states, controlling > the sleeping depth and frequency scale accrodingly, on an x86 > processor. > > My question i

Re: ivshmem-net PCI devices not available in RootCell

2018-11-06 Thread Henning Schild
Am Tue, 6 Nov 2018 10:52:58 +0100 schrieb Andreas Messerschmid : > On 11/06/2018 10:48 AM, Henning Schild wrote: > > Am Tue, 6 Nov 2018 10:29:08 +0100 > > schrieb Andreas Messerschmid : > > > >> Hi Henning, > >> > >> On 11/06/2018 10:14 AM, Hen

Re: ivshmem-net PCI devices not available in RootCell

2018-11-06 Thread Henning Schild
Am Tue, 6 Nov 2018 10:29:08 +0100 schrieb Andreas Messerschmid : > Hi Henning, > > On 11/06/2018 10:14 AM, Henning Schild wrote: > > Am Mon, 5 Nov 2018 17:32:40 +0100 > > schrieb Andreas Messerschmid : > > > >> Hi, > >> > >> I

Re: ivshmem-net PCI devices not available in RootCell

2018-11-06 Thread Henning Schild
Am Mon, 5 Nov 2018 17:32:40 +0100 schrieb Andreas Messerschmid : > Hi, > > I'm trying to bring úp an ivshmem-net based inter-cell-communication > on an Intel-Atom E3950 hardware running Jailhouse but I can't > discover any ivshmem-net virtual PCI devices in the RootCell. The > Hypervisor and Linu

  1   2   3   4   5   >