Re: Running ivshmem-demo in Jetson TK1.

2017-04-27 Thread jonas
emory mapped PCI configuration space of the (virtual) PCI devices available to the guest/inmate instead of accessing PCI_REG_ADDR_PORT and PCI_REG_DATA_PORT using functions(out|in)[bwl]? Best regards - Jonas Weståker -- You received this message because you are subscribed to the Google Groups &q

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread jonas
), in order to distinguish between TIMER_IRQ and IVSHMEM_IRQ, right? TIMER_IRQ is defined (to 27) in jailhouse/inmates/lib/arm/include/mach.h. Where does this value come from? How do I know what value to set IVSHMEM_IRQ to? Still a bit confused - Jonas -- You received this message because you

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread jonas
ttps://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 of ivshmem-guest-code. I've seen it. I'm on the jailhouse branch of ivshmem-guest-code. Thanks - Jonas -- You received this mess

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread jonas
Den onsdag 17 maj 2017 kl. 13:54:07 UTC+2 skrev jonas: > > > > > You do not need to know the number, the uio-driver knows it. And > > > > > the bare metal inmate does not need to know it since it is just > > > > > writing to a register to trigger it.

Re: Running ivshmem-demo in Jetson TK1.

2017-05-17 Thread jonas
; > > > > > Yep, I've started looking at this example. Thanks for verifying that > > > this is the way forward. > > > > > > > > > > > > Does the uio_ivshmem driver take care of generating interrupts > > > > > from the root-cell

Re: Running ivshmem-demo in Jetson TK1.

2017-05-19 Thread jonas
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>: > > > > > > > > Hi again, > > > > > > > > Let's assume that I want to modify > >

Re: Running ivshmem-demo in Jetson TK1.

2017-05-18 Thread jonas
e array size for > irqchips. > From the pin_bitmap you just need the second value > 0, 0, 0, 1 << (155-128), > And now your IVSHMEM_IRQ is 155. That should work, but i also cant > fully explain where the numbers come from. > > Henning > > > Still a bit

Re: Running ivshmem-demo in Jetson TK1.

2017-05-05 Thread jonas
wiki. > > > Make sure to keep your access aligned with the size that is > > > requested. > > > > > > Code that is similar to what you will need can be found in the > > > hypervisor. hypervisor/pci.c include/jailhouse/mmio.h > > > > > &

Re: Running ivshmem-demo in Jetson TK1.

2017-05-05 Thread jonas
Den tisdag 2 maj 2017 kl. 18:12:04 UTC+2 skrev J. Kiszka: > On 2017-05-02 17:35, Jonas Westaker wrote: > >>> Hi, > >>> > >>> I'm also experimenting with ivshmem between the root-cell and a bare > >>> metal cell. In my case, however, on Banana

Re: Running ivshmem-demo in Jetson TK1.

2017-12-21 Thread jonas
Den torsdag 21 december 2017 kl. 17:24:30 UTC+1 skrev Jan Kiszka: > On 2017-12-21 16:32, Luca Cuomo wrote: > > Il giorno giovedì 21 dicembre 2017 14:19:48 UTC+1, Jan Kiszka ha scritto: > >> On 2017-12-21 10:05, Luca Cuomo wrote: > >>> Il giorno domenica 10 dicembre

Re: intercell communication on bananapi

2018-01-05 Thread jonas
> Best regards, > Assila I just posted a patch-set doing exactly this, here: https://groups.google.com/forum/#!topic/jailhouse-dev/IqwQsQ9JEno and for some background information on how to get there: https://groups.google.com/forum/#!topic/jailhouse-dev/_lVeo-Ru85A /Jonas -- You recei

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

2018-01-20 Thread jonas
Den tisdag 16 januari 2018 kl. 17:14:13 UTC+1 skrev Henning Schild: > Hi, > > these patches are an attempt to get the contributions from Jonas in a > shape that can be merged. This first version was tested on x86 and arm > 32, i want it to work on arm64 as well but still h

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

2018-02-02 Thread jonas
. but i'm continually having errors "implicit > declaration of function..." although i changed the KDIR path to my kernel > path. > > @Henning: which kernel and toolchain are you using to cross compile ? > @Jonas: i was following your patches to test the inter-cell co

Re: Running ivshmem-demo in Jetson TK1.

2017-12-22 Thread jonas
Den torsdag 21 december 2017 kl. 23:47:39 UTC+1 skrev jonas: > Den torsdag 21 december 2017 kl. 17:24:30 UTC+1 skrev Jan Kiszka: > > On 2017-12-21 16:32, Luca Cuomo wrote: > > > Il giorno giovedì 21 dicembre 2017 14:19:48 UTC+1, Jan Kiszka ha scritto: > > >> On 2017

Re: Running ivshmem-demo in Jetson TK1.

2017-12-22 Thread jonas
Den fredag 22 december 2017 kl. 10:32:12 UTC+1 skrev Luca Cuomo: > Il giorno giovedì 21 dicembre 2017 23:47:39 UTC+1, jonas ha scritto: > > Den torsdag 21 december 2017 kl. 17:24:30 UTC+1 skrev Jan Kiszka: > > > On 2017-12-21 16:32, Luca Cuomo wrote: > > > > Il gior

Re: Running ivshmem-demo in Jetson TK1.

2018-03-12 Thread jonas
Den fredag 9 mars 2018 kl. 09:10:12 UTC+1 skrev Claudio Scordino: > Hi Jonas, > > > 2017-12-10 17:34 GMT+01:00 jonas <jo...@retotech.se>: > Hi, > > > > I'll be making an effort to contribute my work to the master branch of > Jailhouse within the nex

[PATCH 2/4] Added bare metal ivshmem-demo inmate for Bananapi

2018-01-05 Thread jonas . westaker
From: Jonas Weståker <jo...@retotech.se> Signed-off-by: Jonas Weståker <jo...@retotech.se> --- configs/bananapi-ivshmem-demo.c | 111 +++ configs/bananapi.c | 2 +- configs/bpi-shmem-demo.c | 96 inmates/demos/

[PATCH 1/4] Added virtual PCI support for ARM 32

2018-01-05 Thread jonas . westaker
From: Jonas Weståker <jo...@retotech.se> Signed-off-by: Jonas Weståker <jo...@retotech.se> --- inmates/lib/arm/Makefile | 1 + inmates/lib/arm/include/arch/inmate.h | 33 + inmates/lib/arm/pci.c | 70

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

2018-01-05 Thread jonas . westaker
From: Jonas Weståker <jo...@retotech.se> This patch-set contains a bare-metal inmate running an ivshmem-demo using the virtual PCI IVSHMEM device provided by the Jailhouse hypervisor on BananaPi-M1 (ARM). Jonas Weståker (4): Added virtual PCI support for ARM 32 Added bare metal i

[PATCH 4/4] Added debug printouts for ivshmem memory mismatch in hypervisor

2018-01-05 Thread jonas . westaker
From: Jonas Weståker <jo...@retotech.se> Signed-off-by: Jonas Weståker <jo...@retotech.se> --- hypervisor/ivshmem.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/hypervisor/ivshmem.c b/hypervisor/ivshmem.c index cfe7d0a..317dd9d 100644 --- a/hypervisor/ivs

[PATCH 3/4] Added description on how to run bare metal ivshmem-demo on Bananapi

2018-01-05 Thread jonas . westaker
From: Jonas Weståker <jo...@retotech.se> Signed-off-by: Jonas Weståker <jo...@retotech.se> --- inmates/demos/arm/HOWTO.md | 42 ++ 1 file changed, 42 insertions(+) create mode 100644 inmates/demos/arm/HOWTO.md diff --git a/inmates/demos/ar

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

2018-01-05 Thread Jonas Westaker
that sounds like the way to go. I'd be happy to assist in reviewing. /Jonas > > Henning > > Am Fri, 5 Jan 2018 11:58:21 +0100 > schrieb <jonas.westa...@retotech.se>: > > > From: Jonas Weståker <jo...@retotech.se> > > > > This patch-set contains