Branch: refs/heads/coverity_scan
  Home:   https://github.com/siemens/jailhouse
  Commit: 23f745cbe19089d95465baf25e85892979bd6d85
      
https://github.com/siemens/jailhouse/commit/23f745cbe19089d95465baf25e85892979bd6d85
  Author: Henning Schild <[email protected]>
  Date:   2018-05-04 (Fri, 04 May 2018)

  Changed paths:
    M hypervisor/arch/x86/include/asm/processor.h
    M hypervisor/arch/x86/mmio.c
    M inmates/tests/x86/mmio-access.c

  Log Message:
  -----------
  x86: mmio: Skip over address size prefix found in x32 code

The prefix does appear in guests compiled with "-mx32". In the
instruction parser we just have to skip over it.
The patch also adds a few of these instructions to the mmio testcase.

Reported-by: Rene Graf <[email protected]>
Signed-off-by: Henning Schild <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: 6115bb4b3e24eb22d740e20d60a371e6e6271251
      
https://github.com/siemens/jailhouse/commit/6115bb4b3e24eb22d740e20d60a371e6e6271251
  Author: Francois-Frederic Ozog <[email protected]>
  Date:   2018-05-04 (Fri, 04 May 2018)

  Changed paths:
    A tools/jailhouse-cell.8
    A tools/jailhouse-enable.8
    A tools/jailhouse.8

  Log Message:
  -----------
  tools: First cut at manpages for jailhouse

Document jailhouse in general, jailhouse enable and parts of jailhouse cell
user can enter
man jailhouse cell
or
man jailhouse-cell

No install procedure is yet provided

Signed-off-by: Francois-Frederic Ozog <[email protected]>
[Jan: put them directly into tools folder]
Signed-off-by: Jan Kiszka <[email protected]>


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

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

  Log Message:
  -----------
  tools: Install man pages

Make it simple and hard-code that we are carrying only man8 pages so
far.

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


  Commit: 97df80071a5392b958504084a992c6264c380716
      
https://github.com/siemens/jailhouse/commit/97df80071a5392b958504084a992c6264c380716
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-06 (Sun, 06 May 2018)

  Changed paths:
    M hypervisor/arch/x86/include/asm/processor.h
    M hypervisor/arch/x86/mmio.c
    M inmates/tests/x86/mmio-access.c

  Log Message:
  -----------
  x86: mmio, inmates/tests: Add support for movb-from-mem

We already support movb-to-mem, adding the reverse direction is simple.
Accompany this with tests for both 8-bit accesses.

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


  Commit: 4b2c6222adcbdef2f846adc2a69428ed142d817b
      
https://github.com/siemens/jailhouse/commit/4b2c6222adcbdef2f846adc2a69428ed142d817b
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-07 (Mon, 07 May 2018)

  Changed paths:
    M hypervisor/arch/x86/include/asm/svm.h
    M hypervisor/arch/x86/svm.c

  Log Message:
  -----------
  x86: svm: Rename segment.access_rights to attributes

This is how the field is called in the AMD spec.

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


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

  Changed paths:
    M hypervisor/arch/x86/include/asm/vcpu.h
    M hypervisor/arch/x86/mmio.c
    M hypervisor/arch/x86/svm.c
    M hypervisor/arch/x86/vcpu.c
    M hypervisor/arch/x86/vmx.c

  Log Message:
  -----------
  x86: Fix long mode detection

If the guest is currently running in long mode does not only depend on
EFER having it enabled. We also need to check if CS.L is set. If L is 0,
we are actually in compatibility mode.

Rework vcpu_vendor_get_cs() to vcpu_vendor_get_cs_attr() so that it
returns all needed information about the CS segment. This includes L,
the DPL for the current privilege level and already the D/B bit which
will be needed soon by the instruction parser.

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


  Commit: 534ba34d2e4337319a079afaacba249085667c51
      
https://github.com/siemens/jailhouse/commit/534ba34d2e4337319a079afaacba249085667c51
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-07 (Mon, 07 May 2018)

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

  Log Message:
  -----------
  x86: mmio: Fix address width calculation

As we are claiming to support the affected instructions, we should get
this completely right: When not in long mode, the combination of the
address-size prefix and the D/B bit from CS defines if we are using 16
or 32 bit addresses.

A similar pattern may eventually be useful to support the operand-size
prefix for with 16-bit accesses.

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


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

  Changed paths:
    M inmates/tests/x86/Makefile
    A inmates/tests/x86/mmio-access-32.c

  Log Message:
  -----------
  inmates: tests: Add x86-32 MMIO test case

Mostly the 32-bit equivalent of the existing 64-bit case, just removing
long-mode-only tests and converting to 32-bit data/address size where
needed.

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


  Commit: 88ad341dae2c048953bb98f712e13c13356f3d7c
      
https://github.com/siemens/jailhouse/commit/88ad341dae2c048953bb98f712e13c13356f3d7c
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M hypervisor/control.c
    M include/jailhouse/hypercall.h

  Log Message:
  -----------
  core: comm_region: Add magic and ABI revision to comm_region

Changes to the ABI of the communication region might break inmates
without noticing. Add the magic JHCOMM together with the ABI version as
a preamble of the structure.

The location signature, revision and cell_state are frozen from now on: their
location will be stable in future. Put those three fields at the beginning of
the structure, in this order.

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


  Commit: 569ba13bca8a5e83d3656d515e0fc65dd5a2280c
      
https://github.com/siemens/jailhouse/commit/569ba13bca8a5e83d3656d515e0fc65dd5a2280c
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M driver/sysfs.c
    M hypervisor/control.c
    M include/jailhouse/hypercall.h

  Log Message:
  -----------
  core, driver: add new cell state JAILHOUSE_CELL_FAILED_COMM_REV

A cell may set this state if its internal ABI of the communication
region is incompatibel to the one provided by the hypervisor.

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


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

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

  Log Message:
  -----------
  inmates: implement halt()

We will enter this function if we hit unrecoverable state.

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


  Commit: 843956ef3fe2b18ff76545c85aecb2f1381b9ab9
      
https://github.com/siemens/jailhouse/commit/843956ef3fe2b18ff76545c85aecb2f1381b9ab9
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M inmates/lib/arm/include/arch/inmate.h
    M inmates/lib/arm64/include/arch/inmate.h
    M inmates/lib/x86/inmate.h

  Log Message:
  -----------
  inmates: implement arch_disable_irqs()

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


  Commit: 21106144204724a6b69a81faedc4f19dc16a76e6
      
https://github.com/siemens/jailhouse/commit/21106144204724a6b69a81faedc4f19dc16a76e6
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M inmates/lib/inmate_common.h

  Log Message:
  -----------
  inmates: implement stop()

stop() disables all interrupts and enters halt().

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


  Commit: 15c91483ad513432b4151ccc9824217cb0754235
      
https://github.com/siemens/jailhouse/commit/15c91483ad513432b4151ccc9824217cb0754235
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M inmates/lib/arm-common/Makefile.lib
    M inmates/lib/arm/header.S
    M inmates/lib/arm64/header.S
    A inmates/lib/setup.c
    M inmates/lib/x86/Makefile
    M inmates/lib/x86/header-32.S
    M inmates/lib/x86/header.S

  Log Message:
  -----------
  inmates: add intermediate c_entry trampoline

Don't jump directly to inmate_main from assembly, jump to c_entry.

At the moment, c_entry does nothing else than jumping to inmate_main and
stop the machine if inmate_main returns.

Later we can use c_entry to do platform independant setup/checks.

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


  Commit: 91ac3cae573acc9601feee4489eed27bf2f115a0
      
https://github.com/siemens/jailhouse/commit/91ac3cae573acc9601feee4489eed27bf2f115a0
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M inmates/lib/x86/header-32.S
    M inmates/lib/x86/header.S

  Log Message:
  -----------
  inmates: x86: move stop label to the top

We will never return from c_entry. Make it clear on x86 by moving the stop
label to the top of the assembly code.

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


  Commit: 7d350e8e73fed777d1181ee8ffce1428eea489b6
      
https://github.com/siemens/jailhouse/commit/7d350e8e73fed777d1181ee8ffce1428eea489b6
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M inmates/lib/inmate_common.h
    M inmates/lib/string.c

  Log Message:
  -----------
  inmates: implement memcmp

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


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

  Changed paths:
    M configs/arm/bananapi-gic-demo.c
    M configs/arm/bananapi-linux-demo.c
    M configs/arm/bananapi-uart-demo.c
    M configs/arm/emtrion-rzg1e-linux-demo.c
    M configs/arm/emtrion-rzg1e-uart-demo.c
    M configs/arm/emtrion-rzg1h-linux-demo.c
    M configs/arm/emtrion-rzg1h-uart-demo.c
    M configs/arm/emtrion-rzg1m-linux-demo.c
    M configs/arm/emtrion-rzg1m-uart-demo.c
    M configs/arm/jetson-tk1-demo.c
    M configs/arm/jetson-tk1-linux-demo.c
    M configs/arm/orangepi0-gic-demo.c
    M configs/arm/orangepi0-linux-demo.c
    M configs/arm/vexpress-gic-demo.c
    M configs/arm/vexpress-linux-demo.c
    M configs/arm/vexpress-uart-demo.c
    M configs/arm64/amd-seattle-gic-demo.c
    M configs/arm64/amd-seattle-linux-demo.c
    M configs/arm64/amd-seattle-uart-demo.c
    M configs/arm64/espressobin-gic-demo.c
    M configs/arm64/espressobin-linux-demo.c
    M configs/arm64/foundation-v8-gic-demo.c
    M configs/arm64/foundation-v8-linux-demo.c
    M configs/arm64/foundation-v8-uart-demo.c
    M configs/arm64/hikey-gic-demo.c
    M configs/arm64/hikey-linux-demo.c
    M configs/arm64/imx8mq-gic-demo.c
    M configs/arm64/jetson-tx1-demo.c
    M configs/arm64/jetson-tx1-linux-demo.c
    M configs/arm64/jetson-tx2-demo.c
    M configs/arm64/qemu-arm64-gic-demo.c
    M configs/arm64/qemu-arm64-linux-demo.c
    M configs/arm64/zynqmp-zcu102-gic-demo.c
    M configs/arm64/zynqmp-zcu102-linux-demo-2.c
    M configs/arm64/zynqmp-zcu102-linux-demo.c
    M inmates/lib/arm-common/include/inmate.h

  Log Message:
  -----------
  configs: arm: add comm_region to all inmates

comm_region will become mandatory for all of our inmates.

On x86, we already use the communication region to pass certain platform
specific information to guests. So let's do this on all ARM
architectures as well. This patch is a preparation for that.

Let's use guest paddr 0x80000000 (2GiB) for the comm region, which
doesn't seem to collide with any existing (MMIO) region of our current
inmates.

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


  Commit: 722b74e32cf666784b2f66310c51cab50285d47c
      
https://github.com/siemens/jailhouse/commit/722b74e32cf666784b2f66310c51cab50285d47c
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-08 (Tue, 08 May 2018)

  Changed paths:
    M inmates/lib/setup.c

  Log Message:
  -----------
  inmates: check communication region ABI version

Or fail by setting the cell's state and halt.

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


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

  Changed paths:
    M inmates/demos/arm/gic-demo.c
    M inmates/demos/x86/ioapic-demo.c
    M inmates/demos/x86/ivshmem-demo.c
    M inmates/demos/x86/pci-demo.c

  Log Message:
  -----------
  inmates: use halt() in demos

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


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

  Changed paths:
    M Documentation/hypervisor-interfaces.txt

  Log Message:
  -----------
  Documentation: document new communication region fields

Freeze the fields "Signature", "ABI Revision" and "Cell State". Future
changes of the ABI must not modify their offsets.

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


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

  Changed paths:
    M tools/jailhouse.c

  Log Message:
  -----------
  tools: jailhouse: widen space for cell state

"Comm ABI mismatch" needs a bit more space.

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


  Commit: 1e28aeb99ac553acd5f333b2fc5ee0774d7eb8be
      
https://github.com/siemens/jailhouse/commit/1e28aeb99ac553acd5f333b2fc5ee0774d7eb8be
  Author: Jan Kiszka <[email protected]>
  Date:   2018-05-09 (Wed, 09 May 2018)

  Changed paths:
    M .gitignore
    M tools/Makefile
    R tools/jailhouse-cell.8
    A tools/jailhouse-cell.8.in
    R tools/jailhouse-enable.8
    A tools/jailhouse-enable.8.in
    R tools/jailhouse.8
    A tools/jailhouse.8.in

  Log Message:
  -----------
  tools: man: Inject generated version number

Rather than hard-coding this quickly outdated information, generate the
man pages via sed from a template that contains a placeholder for the
current version.

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


  Commit: 162a55303658a932a2042db0404b5d350ab04b59
      
https://github.com/siemens/jailhouse/commit/162a55303658a932a2042db0404b5d350ab04b59
  Author: Ralf Ramsauer <[email protected]>
  Date:   2018-05-09 (Wed, 09 May 2018)

  Changed paths:
    M inmates/Makefile
    M inmates/lib/arm/Makefile
    M inmates/lib/x86/Makefile

  Log Message:
  -----------
  inmates: globally enable -ffunction-sections

We were missing -ffunction-sections for ARM64 inmates. Simply enable
-ffunction-sections for all inmates, independant of the specific
architecture.

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


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

  Changed paths:
    M hypervisor/setup.c

  Log Message:
  -----------
  core: wait for all expected CPUs to leave arch_entry

Wait for all expected CPUs to leave arch_entry. This allows to
collect CPU-specific information in arch_entry, such as parange
on ARM64, which will be needed early.

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


  Commit: 542c75ebc34d4698b9215b936a4fb8cb84e8a289
      
https://github.com/siemens/jailhouse/commit/542c75ebc34d4698b9215b936a4fb8cb84e8a289
  Author: Peng Fan <[email protected]>
  Date:   2018-05-11 (Fri, 11 May 2018)

  Changed paths:
    M hypervisor/arch/arm64/Kbuild
    M hypervisor/arch/arm64/asm-defines.c
    M hypervisor/arch/arm64/entry.S
    M hypervisor/arch/arm64/include/asm/paging.h
    M hypervisor/arch/arm64/include/asm/percpu.h
    A hypervisor/arch/arm64/paging.c

  Log Message:
  -----------
  arm64: restructure get_cpu_parange

On ARM64 Big/Little Platform, such as i.MX8QM,
there are two types of Cortex-A CPUs, Cortex-A53 and Cortex-A72.
A53 ID_AA64MMFR0_EL1 shows its physical address range supported is 40bits.
A72 ID_AA64MMFR0_EL1 shows its physical address range supported is 44bits.

The minimal value 40 needs to be used as cpu parange, if using 44,
A53 will be broken. So need to iterate the cpu parange of all the
CPUs to find out the smallest one.

Add a new percpu entry id_aa64mmfr0 whose low 4 bits holds parange.
Fill id_aa64mmfr0 before runs into entry
Move arm64 get_cpu_parange out to a new file
Use percpu id_aa64mmfr0 in get_cpu_parange and choose the smallest value

Then each time using get_cpu_parange, the smallest one will
be chosen.

Signed-off-by: Peng Fan <[email protected]>
[Jan: made loop in get_cpu_parange() more compact]
Signed-off-by: Jan Kiszka <[email protected]>


Compare: 
https://github.com/siemens/jailhouse/compare/85d89c7fe228...542c75ebc34d
      **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