[siemens/jailhouse] 822f76: arm-common: gic-v3: Mark last CPUs GICR as last

2018-04-11 Thread GitHub
Branch: refs/heads/coverity_scan Home: https://github.com/siemens/jailhouse Commit: 822f7697cfaa5ac492356d24feb273565f04ac45 https://github.com/siemens/jailhouse/commit/822f7697cfaa5ac492356d24feb273565f04ac45 Author: Lokesh Vutla Date: 2018-03-19 (Mon, 19

[siemens/jailhouse] 5df923: configs: x86: Expand inmate reservation

2018-04-11 Thread GitHub
Branch: refs/heads/master Home: https://github.com/siemens/jailhouse Commit: 5df9232178d3d854c5802466fbc87f02ea14752d https://github.com/siemens/jailhouse/commit/5df9232178d3d854c5802466fbc87f02ea14752d Author: Jan Kiszka Date: 2018-02-18 (Sun, 18 Feb

[siemens/jailhouse] e8370e: x86: svm: Intercept all SVM instructions

2018-04-11 Thread GitHub
Branch: refs/heads/next Home: https://github.com/siemens/jailhouse Commit: e8370e9d85492c1897ed248a76e08b577b498f23 https://github.com/siemens/jailhouse/commit/e8370e9d85492c1897ed248a76e08b577b498f23 Author: Jan Kiszka Date: 2018-04-03 (Tue, 03 Apr

Re: [PATCH] inmates: assume VMCALL for hypercalls, detect AMD to change

2018-04-11 Thread Jan Kiszka
On 2018-04-11 15:16, f...@ozog.com wrote: > inmates cannot use X86_FEATURE_VMX from regular cpuid > as vcpu maks the bit explicitely on non-root cells. > > use cpuid leaf 0 to detect AuthenticAMD and change to VMMCALL > > Signed-off-by: Francois-Frederic Ozog > --- >  

Re: [PATCH v2 0/4] Support for Nvidia Jetson TX2

2018-04-11 Thread Jan Kiszka
On 2018-04-11 10:26, Claudio Scordino wrote: > Tested on the "next" branch against Nvidia's kernel 4.4 (not Vanilla) by > restoring the ABI for kernels < 4.7 in hypervisor/arch/arm64/entry.S: > > /* install bootstrap_vectors */ > ldr x0, =bootstrap_vectors > virt2phys

Re: [PATCH 1/2] driver: ensure jailhouse is not enabled when VT-X is disabled by firmware

2018-04-11 Thread Jan Kiszka
On 2018-04-10 10:55, f...@ozog.com wrote: > Whithout the check, > jailhouse enable configs/x86/sysconfig.cell > results in a GP and a reboot > > do not allow enable if firmware has disabled VT-X on Intel VMX > > Signed-off-by: Francois-Frederic Ozog > --- >  driver/main.c | 16

Re: Share memory among cells on arm64

2018-04-11 Thread Giovani Gracioli
Here is the output of the unhandled data read: Unhandled data read at 0xfc10(2) FATAL: unhandled trap (exception class 0x24) Cell state before exception: pc: 1828 lr: 15f0 spsr: 6005 EL1 sp: 3f30 esr: 24 1 146 x0: fc10 x1:

[PATCH] inmates: assume VMCALL for hypercalls, detect AMD to change

2018-04-11 Thread ff
inmates cannot use X86_FEATURE_VMX from regular cpuid as vcpu maks the bit explicitely on non-root cells. use cpuid leaf 0 to detect AuthenticAMD and change to VMMCALL Signed-off-by: Francois-Frederic Ozog --- inmates/lib/x86/hypercall.c | 12 ++-- 1 file changed, 6

Re: [PATCH] core: ensure proper detection on VMX vs SVM from inmates

2018-04-11 Thread ff
On 11.04.2018 14:18, Jan Kiszka wrote: On 2018-04-11 11:35, f...@ozog.com wrote: inmates cannot use X86_FEATURE_VMX from regular cpuid as vcpu maks the bit explicitely on non-root cells. create the equivalent bit (same register, same position) in the JAILHOUSE_CPUID_FEATURES cpuid leaf

Re: Jailhouse zynqMP

2018-04-11 Thread iallende
El martes, 10 de abril de 2018, 16:44:45 (UTC+2), J. Kiszka escribió: > On 2018-04-10 15:12, Ralf Ramsauer wrote: > > Hi, > > > > On 04/10/2018 02:10 PM, iallende wrote: > >> El martes, 10 de abril de 2018, 10:47:57 (UTC+2), Ralf Ramsauer escribió: > >>> Hi, > >>> > >>> On 04/10/2018 10:26 AM,

Re: [PATCH] core: ensure proper detection on VMX vs SVM from inmates

2018-04-11 Thread Jan Kiszka
On 2018-04-11 11:35, f...@ozog.com wrote: > inmates cannot use X86_FEATURE_VMX from regular cpuid > as vcpu maks the bit explicitely on non-root cells. > > create the equivalent bit (same register, same position) > in the JAILHOUSE_CPUID_FEATURES cpuid leaf > > Signed-off-by: Francois-Frederic

Re: [RFC]: fixing cmdline and hypercall instruction detection

2018-04-11 Thread Jan Kiszka
On 2018-04-11 11:24, Ralf Ramsauer wrote: > Hi, > > On 04/11/2018 11:17 AM, f...@ozog.com wrote: >> On 11.04.2018 10:27, Jan Kiszka wrote: >>> On 2018-04-11 09:55, f...@ozog.com wrote: In trying to get the tiny-demo send logs to jailhouse debug console I found that: - inmate lib

RFC: text for cell loading documentation

2018-04-11 Thread ff
I am proposing to add a Documentation/cell-loading.md file. Rather than proposing the .md directly, I prefer to propose raw text discussion, then work on the cosmetics and links from other parts of the Documentation. -FF Jailhouse loading of images is pretty flexible but can be

[PATCH] core: ensure proper detection on VMX vs SVM from inmates

2018-04-11 Thread ff
inmates cannot use X86_FEATURE_VMX from regular cpuid as vcpu maks the bit explicitely on non-root cells. create the equivalent bit (same register, same position) in the JAILHOUSE_CPUID_FEATURES cpuid leaf Signed-off-by: Francois-Frederic Ozog --- hypervisor/arch/x86/vcpu.c

Re: [RFC]: fixing cmdline and hypercall instruction detection

2018-04-11 Thread Ralf Ramsauer
Hi, On 04/11/2018 11:17 AM, f...@ozog.com wrote: > On 11.04.2018 10:27, Jan Kiszka wrote: >> On 2018-04-11 09:55, f...@ozog.com wrote: >>> In trying to get the tiny-demo send logs to jailhouse debug console I >>> found that: >>> - inmate lib handling of cmdline is broken >>> - inmate lib

Re: [RFC]: fixing cmdline and hypercall instruction detection

2018-04-11 Thread ff
On 11.04.2018 10:27, Jan Kiszka wrote: On 2018-04-11 09:55, f...@ozog.com wrote: In trying to get the tiny-demo send logs to jailhouse debug console I found that: - inmate lib handling of cmdline is broken - inmate lib detection whether to use VMCALL (Intel) or VMMCALL (AMD) instructions to do

Re: [RFC]: fixing cmdline and hypercall instruction detection

2018-04-11 Thread Jan Kiszka
On 2018-04-11 09:55, f...@ozog.com wrote: > In trying to get the tiny-demo send logs to jailhouse debug console I > found that: > - inmate lib handling of cmdline is broken > - inmate lib detection whether to use VMCALL (Intel) or VMMCALL (AMD) > instructions to do hypercalls is broken > > I

[PATCH v2 0/4] Support for Nvidia Jetson TX2

2018-04-11 Thread Claudio Scordino
Tested on the "next" branch against Nvidia's kernel 4.4 (not Vanilla) by restoring the ABI for kernels < 4.7 in hypervisor/arch/arm64/entry.S: /* install bootstrap_vectors */ ldr x0, =bootstrap_vectors virt2phys x0 Claudio Scordino (4): Jetson TX2: root cell config

[PATCH v2 1/4] Jetson TX2: root cell config

2018-04-11 Thread Claudio Scordino
Root cell config for Jetson TX2 using Nvidia's kernel 4.4 (not Vanilla). Tested on the "next" branch by restoring the ABI for kernels < 4.7 in hypervisor/arch/arm64/entry.S: /* install bootstrap_vectors */ ldr x0, =bootstrap_vectors virt2phys x0 Signed-off-by:

[PATCH v2 2/4] Jetson TX2: add inmate support

2018-04-11 Thread Claudio Scordino
Signed-off-by: Claudio Scordino --- inmates/lib/arm64/include/mach.h | 8 1 file changed, 8 insertions(+) diff --git a/inmates/lib/arm64/include/mach.h b/inmates/lib/arm64/include/mach.h index 478e32d..498843c 100644 --- a/inmates/lib/arm64/include/mach.h +++

[PATCH v2 3/4] Jetson TX2: add demo cell config

2018-04-11 Thread Claudio Scordino
Signed-off-by: Claudio Scordino --- configs/arm64/jetson-tx2-demo.c | 51 + 1 file changed, 51 insertions(+) create mode 100644 configs/arm64/jetson-tx2-demo.c diff --git a/configs/arm64/jetson-tx2-demo.c

[PATCH v2 4/4] Documentation: Add TX2 to the list of supported hardware

2018-04-11 Thread Claudio Scordino
Signed-off-by: Claudio Scordino --- Documentation/hypervisor-configuration.md | 6 +- README.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Documentation/hypervisor-configuration.md

[RFC]: fixing cmdline and hypercall instruction detection

2018-04-11 Thread ff
In trying to get the tiny-demo send logs to jailhouse debug console I found that: - inmate lib handling of cmdline is broken - inmate lib detection whether to use VMCALL (Intel) or VMMCALL (AMD) instructions to do hypercalls is broken I found fixes but I'd like to discuss how to properly

Re: [PATCH 1/4] Jetson TX2: root cell config

2018-04-11 Thread Claudio Scordino
Hi Jan, 2018-04-10 18:30 GMT+02:00 Jan Kiszka : > On 2018-04-10 15:00, Claudio Scordino wrote: > > > > > > 2018-04-09 19:36 GMT+02:00 Jan Kiszka > >: > > > > On 2018-04-09 16:35, Claudio Scordino wrote: > >