Branch: refs/heads/coverity_scan
  Home:   https://github.com/siemens/jailhouse
  Commit: 7681d92966363138c672086a0a7064ca78a67af9
      
https://github.com/siemens/jailhouse/commit/7681d92966363138c672086a0a7064ca78a67af9
  Author: Andreas Kölbl <[email protected]>
  Date:   2016-11-18 (Fri, 18 Nov 2016)

  Changed paths:
    M Documentation/setup-on-banana-pi-arm-board.md

  Log Message:
  -----------
  Documentation: Fix Bananapi tutorial

We are missing a $i.

Signed-off-by: Andreas Kölbl <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: da7865cbdaefed89fc774b62424dd4c24fa85381
      
https://github.com/siemens/jailhouse/commit/da7865cbdaefed89fc774b62424dd4c24fa85381
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-19 (Sat, 19 Nov 2016)

  Changed paths:
    M scripts/include.mk

  Log Message:
  -----------
  tooling: Clean up installation directories

INSTALL_DIRECTORIES only needs to list those dirs that are actually
referenced in make rules. That means we can drop exec_prefix and prefix.
Those parent dirs will be created, if needed, by the respective subdir
targets.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 8e9a651cc7f6e2056509a3532a66a761909b250f
      
https://github.com/siemens/jailhouse/commit/8e9a651cc7f6e2056509a3532a66a761909b250f
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M scripts/include.mk
    M tools/Makefile

  Log Message:
  -----------
  tooling: Install jailhouse bash completion script

Those scripts should go to /usr/share/bash-completion/completions on
normal distributions, so make this happen.

Actually, we would like to put them under
$(datadir)/bash-completion/completions, but that is only scanned by
bash-completion if its $(datadir) equals ours or, for version 2.2 and
later, if it's /usr/local/share. So stick with the hard-coded /usr/share
for now.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: b9b7bc8bd3773c6bf53ccfb059b5abd4b593d3f2
      
https://github.com/siemens/jailhouse/commit/b9b7bc8bd3773c6bf53ccfb059b5abd4b593d3f2
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M hypervisor/arch/arm64/traps.c

  Log Message:
  -----------
  arm64: Report exception class on trap errors

Helps debugging the reasons and aligns ARM64 with ARM.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 47b4d077fc5758e502dca40fad81cb6ad73ba379
      
https://github.com/siemens/jailhouse/commit/47b4d077fc5758e502dca40fad81cb6ad73ba379
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M hypervisor/arch/arm/traps.c

  Log Message:
  -----------
  arm: Expand trap_handlers to full possible size

There can be up to 64 exception classes (6 bits), although some are
still reserved by ARM. Better be safe and size the dispatching table
according to the maximum possible number.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 429d1a1f2a0fbcd82fd955fe7a53113738781109
      
https://github.com/siemens/jailhouse/commit/429d1a1f2a0fbcd82fd955fe7a53113738781109
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M hypervisor/arch/arm64/include/asm/traps.h
    M hypervisor/arch/arm64/traps.c

  Log Message:
  -----------
  arm64: Switch to table-driven trap dispatching

This aligns ARM64 with ARM and makes the code more compact.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 6d82f6ddf930f75ae58d3f174eb78cc832e75627
      
https://github.com/siemens/jailhouse/commit/6d82f6ddf930f75ae58d3f174eb78cc832e75627
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M hypervisor/arch/arm/traps.c
    M hypervisor/arch/arm64/traps.c

  Log Message:
  -----------
  arm/arm64: Report faulting address on instruction traps

This helps analyzing cell crashes on IABT.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 40dc8dc03cbee940edee205ef112e8a1f65702bd
      
https://github.com/siemens/jailhouse/commit/40dc8dc03cbee940edee205ef112e8a1f65702bd
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M hypervisor/printk-core.c

  Log Message:
  -----------
  core: Add support for single characters to printk

This allows to use %c. Will be useful for the DEBUG_CONSOLE_PUTC
hypercall.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: e1bda8b1d47da1efe9acdac9875ee51e85b05d05
      
https://github.com/siemens/jailhouse/commit/e1bda8b1d47da1efe9acdac9875ee51e85b05d05
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M Documentation/hypervisor-interfaces.txt
    M hypervisor/control.c
    M hypervisor/include/jailhouse/cell-config.h
    M hypervisor/include/jailhouse/hypercall.h

  Log Message:
  -----------
  core: Add hypercall to write to debug console

In order to debug non-root cell boot-strap procedures, it can be helpful
to have a simple and reliable channel for printing messages, and that
independently of passing physical UARTs through or establishing virtual
networks. Such a channel can easily provided via a hypervisor that
writes to the hypervisor's debug console.

However, only invocations from cells which have the explicit permission
via the configuration flag JAILHOUSE_CELL_DEBUG_CONSOLE are executed.
The default remains off, and the administrator is expected to grant this
permission only temporarily while debugging a specific cell.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 00ec69455399f48b15729b4275c406ed11083fd8
      
https://github.com/siemens/jailhouse/commit/00ec69455399f48b15729b4275c406ed11083fd8
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M inmates/tools/arm/Makefile
    A inmates/tools/arm/linux-loader.c

  Log Message:
  -----------
  inmates: arm: Add non-root Linux loader

This adds a minimalistic boot loader for Linux non-root cells. It will
be used by the loader script later on which will figure out the right
locations for kernel and device tree and pass their addresses to to the
inmate command line.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: d2ffcd1ece30a7e05a27b1e00b1ac4ecb54bc55d
      
https://github.com/siemens/jailhouse/commit/d2ffcd1ece30a7e05a27b1e00b1ac4ecb54bc55d
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M Makefile

  Log Message:
  -----------
  tooling: Install arm and arm64 Linux loaders

Now all architecture have a Linux loader - install them.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: a7b8b414c893c5fdbf7dc2df3f7e6cecc9af1c26
      
https://github.com/siemens/jailhouse/commit/a7b8b414c893c5fdbf7dc2df3f7e6cecc9af1c26
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M tools/jailhouse-cell-linux

  Log Message:
  -----------
  tools: Prepare jailhouse-cell-linux for non-x86 support

Encapsulate arch-specific pieces into a an arch class so that it becomes
cleaner to extend the support to ARM.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 077e62e372c5f971929b59347ee594a6f27f052f
      
https://github.com/siemens/jailhouse/commit/077e62e372c5f971929b59347ee594a6f27f052f
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M tools/jailhouse-cell-linux
    M tools/jailhouse-completion.bash

  Log Message:
  -----------
  tools: Add ARM and ARM64 support to Linux loader script

This extends "jailhouse cell linux" with support for ARM and ARM64
targets. Those need a device tree template to describe the cell, so we
extend the command line options accordingly.

Command line and initrd location/size are passed to the kernel via the
device tree. Therefore, we have to parse the input dtb and patch/extend
it with the required properties under /chosen.

Furthermore, placing the images into the cell memory has arch-dependent
constraints. We need to leave some space (we chose 3-times the kernel
image) between kernel and initrd so that Linux can do decompression and
relocation. And on ARM64, the kernel has to be put on 2 MB-aligned
address plus it load offset.

As we are already patching the dtb, we can also create the /memory node
from the cell configuration. This avoids that config and device tree
have to be manually kept in sync in this regard. Just make sure to not
report any tiny region at the start of address space which we need for
the loader but Linux cannot use and rather get confused by, failing to
boot.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 4d8d7f1e7cd8204ad53a73acc1a353d96435be68
      
https://github.com/siemens/jailhouse/commit/4d8d7f1e7cd8204ad53a73acc1a353d96435be68
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M configs/amd-seattle-linux-demo.c
    M configs/dts/inmate-amd-seattle.dts

  Log Message:
  -----------
  configs: Tune AMD Seattle Linux inmate configuration

Be less wasteful with memory: provide most of the RAM 1:1 mapped and
report that as available memory via the device tree. Also set
JAILHOUSE_MEM_DMA for the RAM regions, even though we don't have SMMU
support yet, so that the Linux loader script can identify them as RAM.

As jailhouse-cell-linux is now writing the /memory node, we can remove
it from the device tree, instead of updating it.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 84fa2d65f8dbb0918afceb4a8ceb0b69b343e051
      
https://github.com/siemens/jailhouse/commit/84fa2d65f8dbb0918afceb4a8ceb0b69b343e051
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    A configs/bananapi-linux-demo.c
    A configs/dts/inmate-bananapi.dts

  Log Message:
  -----------
  configs: Add non-root Linux demo cells and device trees for Banana Pi

Use the separate UART 7 for the inmate. Access to the CCU is granted to
allow Linux to enable the related clock gate. We do not control the
access on a bit-level, so this remains a hack. However, we can at least
avoid that Linux touches the wrong bits by describing only the relevant
one in the inmate device tree.

On ARM, we have the need to align the virtual start address of the
identity-mapped memory to 128 MB. Furthermore, Linux won't boot if that
region starts at 0xf0000000 or higher.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 619affd805e3b472e29c5f9df5d8ea36a15b1d77
      
https://github.com/siemens/jailhouse/commit/619affd805e3b472e29c5f9df5d8ea36a15b1d77
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    A configs/dts/inmate-jetson-tk1.dts
    A configs/jetson-tk1-linux-demo.c

  Log Message:
  -----------
  configs: Add non-root Linux demo cells and device trees for Jetson TK1

We use the same UART for the non-root Linux as the root cell to simplify
the physical setup. Can be changed as needed.

To test SMP support, we hand out two CPUs. Note the peculiarity that the
first CPU has to have ID 0 while the second be reported with its real
one, otherwise Linux won't pick up both. Reason is still unclear.

On ARM, we have the need to align the virtual start address of the
identity-mapped memory to 128 MB. Furthermore, Linux won't boot if that
region starts at 0xf0000000 or higher. This constrains will be removed
at least from the Jetson as soon as we add SMMU support.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 4223f8c78be39cb649d565f78640ddbb0665293b
      
https://github.com/siemens/jailhouse/commit/4223f8c78be39cb649d565f78640ddbb0665293b
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    A configs/dts/inmate-hikey.dts
    A configs/hikey-linux-demo.c

  Log Message:
  -----------
  configs: Add non-root Linux demo cells and device trees for HiKey

For now, we share the UART 3 with the root cell. Can be changed to a
separate port as needed.

To test SMP support, to CPUs are handed out to the non-root cell.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: c9d427dea627ef7af2b6969be0e99c33207b624e
      
https://github.com/siemens/jailhouse/commit/c9d427dea627ef7af2b6969be0e99c33207b624e
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M inmates/tools/arm64/linux-loader.c

  Log Message:
  -----------
  inmates: arm64: Initialize x1-x3 to 0 prior to calling Linux

This is required by the kernel, see also
linux/Documentation/arm64/booting.txt.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: e95bbb3a99aafda07169763a485147d6581ce307
      
https://github.com/siemens/jailhouse/commit/e95bbb3a99aafda07169763a485147d6581ce307
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M inmates/tools/arm64/linux-loader.c

  Log Message:
  -----------
  inmates: arm64: Remove output from Linux loader

Now that the loader is controlled by jailhouse-cell-linux, these debug
messages add no value anymore and rather require access to a UART.
Removing them also obsoletes parsing the kernel header.

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: e615aec7f793b58f0a94c4841a03ce370958f1c4
      
https://github.com/siemens/jailhouse/commit/e615aec7f793b58f0a94c4841a03ce370958f1c4
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M hypervisor/arch/arm-common/control.c
    M hypervisor/arch/arm/control.c
    M hypervisor/arch/arm64/control.c

  Log Message:
  -----------
  arm, arm64: Fix reset of non-root SMP cells

So far, we initialize cpu_on_entry during arch_cell_create, but not on
arch_cell_reset which breaks the PSCI state after reload and starting a
cell. We can simply move the related code over because arch_cell_create
is issued by cell_start, thus early enough after cell creation. The ARM
and ARM64 implementations of the initialization code look different but
already did the same.

And the bonus is even a few lines of code less.

Fixes: 58a0e22f08c8 ("arm: Introduce infrastructure for reworked CPU
                management")

Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 5b15768f6aa738a1db1a6fa097eed6e5182bd06e
      
https://github.com/siemens/jailhouse/commit/5b15768f6aa738a1db1a6fa097eed6e5182bd06e
  Author: Jan Kiszka <[email protected]>
  Date:   2016-11-23 (Wed, 23 Nov 2016)

  Changed paths:
    M driver/sysfs.c

  Log Message:
  -----------
  driver: Add missing statistic entries for ARM64

This completes the list of vmexit counter for ARM64 - basically ARM
minus cp15 exits.

Signed-off-by: Jan Kiszka <[email protected]>


Compare: 
https://github.com/siemens/jailhouse/compare/eea6a71507fe...5b15768f6aa7

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to