Branch: refs/heads/coverity_scan
  Home:   https://github.com/siemens/jailhouse
  Commit: 1ca772b87a7f87d8ce8ac58eab6e0a3d3ce03c01
      
https://github.com/siemens/jailhouse/commit/1ca772b87a7f87d8ce8ac58eab6e0a3d3ce03c01
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-18 (Fri, 18 May 2018)

  Changed paths:
    M configs/arm/dts/inmate-bananapi.dts
    M configs/arm/dts/inmate-jetson-tk1.dts
    M configs/arm/dts/inmate-orangepi0.dts
    M configs/arm64/dts/inmate-amd-seattle.dts
    M configs/arm64/dts/inmate-espressobin.dts
    M configs/arm64/dts/inmate-hikey.dts
    M configs/arm64/dts/inmate-jetson-tx1.dts
    M configs/arm64/dts/inmate-qemu-arm64.dts
    M configs/arm64/dts/inmate-zynqmp-zcu102-2.dts
    M configs/arm64/dts/inmate-zynqmp-zcu102.dts

  Log Message:
  -----------
  configs: Set IRQ_TYPE_EDGE_RISING in DT nodes of virtual PCI host controller

We already do this for the overlay fragment the driver injects and the
Seattle dts. For the latter, use that chance to install the symbolic
value.

The background is that newer Linux kernel dislike IRQ_TYPE_NONE and
express that via WARN_ON during boot.

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


  Commit: 9bd0cfa500d930b37272b3fb2fad31e0aeeb1158
      
https://github.com/siemens/jailhouse/commit/9bd0cfa500d930b37272b3fb2fad31e0aeeb1158
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M tools/jailhouse-cell-linux

  Log Message:
  -----------
  tools: cell-linux: Require cpu_reset_address to be 0

Anything else is not supported by the loader.

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


  Commit: 91891ef12c79c18f67e982e511f76af6aa3277c5
      
https://github.com/siemens/jailhouse/commit/91891ef12c79c18f67e982e511f76af6aa3277c5
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M inmates/tools/x86/linux-loader.c
    M tools/jailhouse-cell-linux

  Log Message:
  -----------
  inmates/tools: x86: Move boot params into cmdline section

Expand the cmdline buffer so that the boot params surely fit in and use
that more stable address from now on.

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


  Commit: 7931a23205b58591a5193562860ef67727951eb3
      
https://github.com/siemens/jailhouse/commit/7931a23205b58591a5193562860ef67727951eb3
  Author: Imanol Allende <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    A Documentation/setup-on-zynqmp-zcu102.md

  Log Message:
  -----------
  Documentation: Step-by-step instructions on how to setup Jailhouse on ZCU102 
based on Xilinx ZynqMP Ultrascale+

Signed-off-by: Imanol Allende <[email protected]>
[Jan: wrap long line, remove trailing whitespaces]
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 36551c18fd3dff1d856fb9343261014ed1eea9f3
      
https://github.com/siemens/jailhouse/commit/36551c18fd3dff1d856fb9343261014ed1eea9f3
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M Documentation/debug-output.md
    M inmates/lib/arm/inmate.lds.S
    M tools/jailhouse-cell-linux

  Log Message:
  -----------
  inmates: arm: move cmdline section to 0x1000

This aligns the location of the cmdline section of ARM inmates with
ARM64 inmates.

Signed-off-by: Ralf Ramsauer <[email protected]>
[Jan: adjust jailhouse-cell-linux as well]
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 91332fa7790340587e2c249ec28719a0fc77b623
      
https://github.com/siemens/jailhouse/commit/91332fa7790340587e2c249ec28719a0fc77b623
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M Documentation/debug-output.md
    M README.md
    M inmates/lib/x86/inmate.lds

  Log Message:
  -----------
  inmates: x86: move cmdline section to 0x1000

Now all architectures use the same address for the cmdline section to
ease the use of the cmdline.

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


  Commit: 4805536f3504c56e8a05e35f591c30b723454f7f
      
https://github.com/siemens/jailhouse/commit/4805536f3504c56e8a05e35f591c30b723454f7f
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M tools/jailhouse-cell.8.in

  Log Message:
  -----------
  Documentation: manpage: maintain changes in cmdline addresses

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


  Commit: 25312d30f2e2e847eb5a40fb8161d0e8d8074532
      
https://github.com/siemens/jailhouse/commit/25312d30f2e2e847eb5a40fb8161d0e8d8074532
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M tools/jailhouse-cell-linux

  Log Message:
  -----------
  tools: jailhouse-cell-linux: align cmdline offsets

Both archs now have the cmdline offset at 0x1000, we can now consolidate
them and move them over to ARMCommon.

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


  Commit: b6fa4ae972e02dc51bd960287ba19264aca849c5
      
https://github.com/siemens/jailhouse/commit/b6fa4ae972e02dc51bd960287ba19264aca849c5
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M tools/jailhouse-cell.8.in

  Log Message:
  -----------
  Documentation: manpage: minor change

Use different wording to make it easier to understand.

(includes correct line-wrapping and the removal of a redundant \&.)

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


  Commit: 7439f7f27a9697d35664d78c293c3f70012cf06a
      
https://github.com/siemens/jailhouse/commit/7439f7f27a9697d35664d78c293c3f70012cf06a
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M hypervisor/arch/x86/control.c
    M hypervisor/control.c

  Log Message:
  -----------
  core: reinitialise comm region on cell restart

The communication region is RW for both, the inmate and the hypervisor.
As a consequence, an inmate may overwrite the whole region. Currently,
the region is filled in cell_create.

Move initialisation to cell_start to provide a proper initial state when
starting the cell. Move architecture specific initialisation to
arch_cell_reset, which will be called by cell_start.

Leave the cell's shut down state in cell_create to maintain a valid
state after cell creation.

Signed-off-by: Ralf Ramsauer <[email protected]>
[Jan: migrated cpu variable as well, massaged comment format in cell_start]
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 00fa129228f50bed00e6c783e47e99ef799e5998
      
https://github.com/siemens/jailhouse/commit/00fa129228f50bed00e6c783e47e99ef799e5998
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M inmates/demos/x86/apic-demo.c
    M inmates/lib/x86/inmate.h
    M inmates/lib/x86/mem.c

  Log Message:
  -----------
  inmates: x86: apic-demo: use alloc() instead of HEAP_BASE

Now there is only one user left of HEAP_BASE: The alloc() function its
self. Fold the definition to mem.c.

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


  Commit: 73c51bc076224c882a547a4d3e343bb67a884226
      
https://github.com/siemens/jailhouse/commit/73c51bc076224c882a547a4d3e343bb67a884226
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-24 (Thu, 24 May 2018)

  Changed paths:
    M inmates/lib/setup.c

  Log Message:
  -----------
  inmates: add license header to setup.c

I forgot to add a license header to setup.c. Add it now.

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


  Commit: c5a248d01dc6a6e06c00833bc05c9c8901462649
      
https://github.com/siemens/jailhouse/commit/c5a248d01dc6a6e06c00833bc05c9c8901462649
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-25 (Fri, 25 May 2018)

  Changed paths:
    M hypervisor/paging.c

  Log Message:
  -----------
  core: Fix paging_create when mapping single hugepages

When mapping hugepages, we try to clean up previous mappings of smaller
granularity for the target region first. Unfortunately, that could
destroy table entries in higher levels when the specific tree became
empty. This was easily reproducible by trying to map a single 2M region
at an address where there are no other mappings around.

The fix is to start the unmap with a subtree, rather than the full
paging tree. This way we will only clear entries at levels below the one
we are about to fill with a hugepage.

As it seems, the unmapping path is currently not used for practical
setups. The releasing impact could only by tested by artificially
defining two memory regions where the first one builds up a mapping with
3 levels and the second one overwrites this with only one level and a
hugepage. This case seems unlikely to occur with normal Jailhouse
reconfigurations. So we may consider dropping the cleanup path in the
future. It's fixed and kept for now to avoid surprises if the assumption
above no longer holds.

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


  Commit: d19b120632391887e117e89b478617c7dfe11a07
      
https://github.com/siemens/jailhouse/commit/d19b120632391887e117e89b478617c7dfe11a07
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M configs/arm64/dts/inmate-espressobin.dts
    M configs/arm64/espressobin-linux-demo.c

  Log Message:
  -----------
  configs: Fix UART for ESPRESSObin Linux inmate

Newer kernels use separate RX/TX interrupts. Also adjust the register
size, according to the latest upstream device tree.

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


  Commit: dd3d1b23a5e2be97596a7a62d6e09c456e7c41b0
      
https://github.com/siemens/jailhouse/commit/dd3d1b23a5e2be97596a7a62d6e09c456e7c41b0
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    A inmates/lib/alloc.c
    M inmates/lib/arm-common/Makefile.lib
    M inmates/lib/inmate_common.h
    M inmates/lib/x86/Makefile
    M inmates/lib/x86/inmate.h
    M inmates/lib/x86/mem.c

  Log Message:
  -----------
  inmates: make alloc() a common library function

We later will use this function on ARM(64) for allocating page tables.

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


  Commit: bcfd5e4382e3dde33af17d333b20dad6e22aec2e
      
https://github.com/siemens/jailhouse/commit/bcfd5e4382e3dde33af17d333b20dad6e22aec2e
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm-common/Makefile.lib
    A inmates/lib/arm-common/setup.c
    M inmates/lib/inmate_common.h
    M inmates/lib/setup.c
    M inmates/lib/x86/Makefile
    A inmates/lib/x86/setup.c

  Log Message:
  -----------
  inmates: implement arch_init_early() routine

Later we will use this function to do architecture-dependent
initialisation. Like setting up the MMU on ARM(64).

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


  Commit: e99c75d402760718713cf7e0cd73bf7a91a95dda
      
https://github.com/siemens/jailhouse/commit/e99c75d402760718713cf7e0cd73bf7a91a95dda
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm-common/gic-v3.c
    A inmates/lib/arm-common/include/asm/sysregs_common.h
    M inmates/lib/arm/include/asm/sysregs.h
    M inmates/lib/arm64/include/asm/sysregs.h

  Log Message:
  -----------
  inmates: arm-common: introduce sysregs_common.h

Many sysregs are shared across arm and arm64. Introduce a common header
for shared definitions.

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


  Commit: 272680b31a42bf5f32619c6711b10c8b63dde633
      
https://github.com/siemens/jailhouse/commit/272680b31a42bf5f32619c6711b10c8b63dde633
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm-common/include/asm/sysregs_common.h

  Log Message:
  -----------
  inmates: arm-common: define more sysregs

Later we'll need more sysregs, define them now.

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


  Commit: 5506d389f819212e7f31e9acbbe6b5baecfc2e19
      
https://github.com/siemens/jailhouse/commit/5506d389f819212e7f31e9acbbe6b5baecfc2e19
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm/include/asm/sysregs.h

  Log Message:
  -----------
  inmates: arm: define more sysregs

For implementing MMU support, we need access to:
  - SCTLR
  - TTBCR
  - TTBR
  - MAIR

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


  Commit: aab3c983e677d7241a40c6ad2995fefdf3f26c36
      
https://github.com/siemens/jailhouse/commit/aab3c983e677d7241a40c6ad2995fefdf3f26c36
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm64/include/asm/sysregs.h

  Log Message:
  -----------
  inmates: arm64: define more sysregs

Same for arm64, define system registers and settings that we will use
later.

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


  Commit: c3c59de8da6e46f68099b4ac539103b8f74a3e90
      
https://github.com/siemens/jailhouse/commit/c3c59de8da6e46f68099b4ac539103b8f74a3e90
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/inmate_common.h
    M inmates/lib/x86/inmate.h

  Log Message:
  -----------
  inmates: make map_range global

This declaration can get global once paging is supported on all
architectures.

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


  Commit: 2ca849b6c4288a0d4e7e01d49e1429622b7675d1
      
https://github.com/siemens/jailhouse/commit/2ca849b6c4288a0d4e7e01d49e1429622b7675d1
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm-common/include/inmate.h
    M inmates/lib/arm/inmate.lds.S
    M inmates/lib/arm64/inmate.lds.S

  Log Message:
  -----------
  inmates: arm: add label for inmate base

We need to id-remap our own inmate. Therefore it needs to know its own
base address.

Signed-off-by: Ralf Ramsauer <[email protected]>


  Commit: 2775e9b31b591343e522003939135b46af384d28
      
https://github.com/siemens/jailhouse/commit/2775e9b31b591343e522003939135b46af384d28
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm-common/include/inmate.h
    M inmates/lib/arm-common/setup.c

  Log Message:
  -----------
  inmates: arm-common: implement common map_range routine

map_range() id-maps pages. Pages may either be uncached (e.g., MMIO) or
cached (e.g., RAM).

On arm and arm64, we only use two level paging. On both architectures,
we will enter level one, IOW we skip level zero on arm64. The first
level page table (the page directory) is allocated statically, the
second level page tables (page middle directores, which have 512
entries) will dynamically be allocated as needed.

As we only use level one and two, the paging granularity well be 2MiB
(HUGE_PAGE_SIZE), same as for x86.

Signed-off-by: Ralf Ramsauer <[email protected]>


  Commit: 4be65febff101849064287182d54c811ca8ef97d
      
https://github.com/siemens/jailhouse/commit/4be65febff101849064287182d54c811ca8ef97d
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

  Changed paths:
    M inmates/lib/arm-common/setup.c

  Log Message:
  -----------
  inmates: arm-common: add MMU support

Basically, the MMU on both ARM architectures work in the same way.

There are only slight differences in register naming and their content.
But the 'same' set of registers needs to be written. By abstracting
registers and their content to sysregs.h, we're now able to use the same
MMU driver code for both architectures.

This MMU driver will ID-map the following regions:
  - Base address of the inmate, length 0x10000 (results in 2MiB)
  - Communication Region, length 0x1000 (results in 2MiB)
  - UART, if existent, length 0x1000 (results in 2MiB)
  - GIC[CD|DR], length 0x1000 (results in 2MiB)

Signed-off-by: Ralf Ramsauer <[email protected]>


  Commit: d33bcbab434a414d7747e371d8acd9550b70d694
      
https://github.com/siemens/jailhouse/commit/d33bcbab434a414d7747e371d8acd9550b70d694
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-26 (Sat, 26 May 2018)

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

  Log Message:
  -----------
  inmates: tools: arm: linux-loader: disable mmu before starting

Linux wants the MMU to be disabled. Disable it before handing control
over to Linux.

Signed-off-by: Ralf Ramsauer <[email protected]>


Compare: 
https://github.com/siemens/jailhouse/compare/1871543996d0...d33bcbab434a
      **NOTE:** This service been marked for deprecation: 
https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.

-- 
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