Branch: refs/heads/coverity_scan
  Home:   https://github.com/siemens/jailhouse
  Commit: 2533ca36e8ca8464687d8ea062986994de0cf043
      
https://github.com/siemens/jailhouse/commit/2533ca36e8ca8464687d8ea062986994de0cf043
  Author: Jiafei Pan <[email protected]>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    A configs/arm64/ls1046a-rdb-inmate-demo.c
    A configs/arm64/ls1046a-rdb-linux-demo.c
    A configs/arm64/ls1046a-rdb.c

  Log Message:
  -----------
  configs: ls1046a-rdb: add cell configure files

Add root cell, inmate cell, and Linux demo cell configure files
for NXP ls1046a RDB platform.

Signed-off-by: Jiafei Pan <[email protected]>
[Jan: fix up CPU overlap between inmate-demo and linux-demo]
Signed-off-by: Jan Kiszka <[email protected]>


  Commit: af8a664fbfa5972c8f11100774c98d3e55a22740
      
https://github.com/siemens/jailhouse/commit/af8a664fbfa5972c8f11100774c98d3e55a22740
  Author: Jiafei Pan <[email protected]>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    A configs/arm64/dts/inmate-ls1046a-rdb.dts

  Log Message:
  -----------
  configs: ls1046a-rdb: Add linux inmate dts demo

Add device tree demo for running Linux as an inmate on
NXP ls1046a RDB board.

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


  Commit: 1dc6b9c0aa354fb0c26680708fc6802112d88ca0
      
https://github.com/siemens/jailhouse/commit/1dc6b9c0aa354fb0c26680708fc6802112d88ca0
  Author: Andrea Bastoni <[email protected]>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M configs/arm64/imx8qm-linux-demo.c
    M configs/arm64/imx8qm.c
    M configs/arm64/k3-j7200-evm-linux-demo.c
    M configs/arm64/k3-j7200-evm.c
    M configs/arm64/k3-j721e-evm-linux-demo.c
    M configs/arm64/k3-j721e-evm.c
    M configs/arm64/ultra96.c
    M configs/arm64/zynqmp-zcu102.c
    M hypervisor/arch/arm64/smmu-v3.c
    M hypervisor/arch/arm64/smmu.c
    M hypervisor/arch/arm64/ti-pvu.c
    M include/jailhouse/cell-config.h

  Log Message:
  -----------
  arm64, configs: SMMUv2: Separate stream ID's mask and id

The SMMUv2 allows filtering bits when matching stream IDs before they're
passed to the TCU. In this way multiple streams legally get the same
translation.

On boards such as the ZCU Ultrascale+, the master ID needed to identify
the corresponding SMMU stream ID may be dependent on a specific AXI ID
that is set by the PL (and could be IP specific).

One single fixed mask to pass to the SMR to compact multiple stream IDs
before they "hit" the TCU is not flexible enough. The use-case is to
compact similar PL-originating masters and have the SMMU behaving the
same for them (e.g., they're assigned to the same inmate). At the
same time, one needs a full stream_id to assign e.g., different GEM
ethernets to different inmates.

Update a stream_id to support two different interpretations:
- for the SMMUv2, provide an explicit mask_out + ID.
- for the SMMUv3, keep the current single ID.

This commit updates the SMMUv2 / v3 --including configuration--
accordingly.

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


  Commit: 297ac264c0f4a4e163b77ab8942780cc1f5f6c61
      
https://github.com/siemens/jailhouse/commit/297ac264c0f4a4e163b77ab8942780cc1f5f6c61
  Author: Andrea Bastoni <[email protected]>
  Date:   2020-12-04 (Fri, 04 Dec 2020)

  Changed paths:
    M configs/Makefile
    M configs/arm64/k3-j7200-evm-linux-demo.c
    M configs/arm64/k3-j7200-evm.c
    M configs/arm64/k3-j721e-evm-linux-demo.c
    M configs/arm64/k3-j721e-evm.c

  Log Message:
  -----------
  configs: add Wall and fix bracketing

In combination with Wextra, Wall enables additional checks such as
Wmissing-braces.

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


  Commit: 3ad66a08f2e14443581acd77740d3b41d3a21e37
      
https://github.com/siemens/jailhouse/commit/3ad66a08f2e14443581acd77740d3b41d3a21e37
  Author: Andrea Bastoni <[email protected]>
  Date:   2020-12-17 (Thu, 17 Dec 2020)

  Changed paths:
    M configs/Makefile
    M inmates/Makefile

  Log Message:
  -----------
  configs, inmates: Makefile: remove .note.gnu.property section during objcopy

It seems that the .note.gnu.property section is interfering with objcpy and
causes the "JHSYST" identification to be removed from the .cell.

Removing the section while copying the .o fixes the issue:

objcopy --version
GNU objcopy (GNU Binutils for Ubuntu) 2.34

readelf -a jailhouse/configs/x86/qemu-x86.o
...
Displaying notes found in: .note.gnu.property
  Owner                Data size        Description
  GNU                  0x00000010       NT_GNU_PROPERTY_TYPE_0
      Properties: x86 feature: IBT, SHSTK

hexdump -C jailhouse/configs/x86/qemu-x86.cell
00000000  04 00 00 00 10 00 00 00  05 00 00 00 47 4e 55 00  |............GNU.|

objcopy -O binary --remove-section=.note.gnu.property
jailhouse/configs/x86/qemu-x86.o jailhouse/configs/x86/qemu-x86.cell

00000000  4a 48 53 59 53 54 0d 00  01 00 00 00 00 00 00 3a  |JHSYST.........:|

Maybe related to:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=906414

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


  Commit: 43eddb879307a83a4febe8ef261e1c0e8aa676c5
      
https://github.com/siemens/jailhouse/commit/43eddb879307a83a4febe8ef261e1c0e8aa676c5
  Author: hongbo.wang <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    A configs/arm64/ls1043a-rdb-inmate-demo.c
    A configs/arm64/ls1043a-rdb-linux-demo.c
    A configs/arm64/ls1043a-rdb.c

  Log Message:
  -----------
  configs: ls1043a-rdb: add cell configure files

Add root cell, inmate cell, and Linux demo cell configure files
for NXP ls1043a RDB platform.

GIC base address of Rev1.1 are different with Rev1.0, default configure
files are for ls1043a RDB Rev1.1, if want to run jailhouse on Rev1.0,
should change to the following:

.gicd_base = 0x1401000,
.gicc_base = 0x1402000,
.gich_base = 0x1404000,
.gicv_base = 0x1406000,

/* irqchips GIC-400*/
.address = 0x1401000,

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


  Commit: a49bbb0bb01d80b932415e44dfbf5ce21829ba97
      
https://github.com/siemens/jailhouse/commit/a49bbb0bb01d80b932415e44dfbf5ce21829ba97
  Author: hongbo.wang <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    A configs/arm64/dts/inmate-ls1043a-rdb.dts

  Log Message:
  -----------
  configs: ls1043a-rdb: Add linux inmate dts demo

Add device tree demo for running Linux as an inmate on
NXP ls1043a RDB board.

GIC base address of Rev1.1 are different with Rev1.0, default dts is for
ls1043a RDB Rev1.1, if want to run linux-demo on Rev1.0, should change
to the following:

gic: interrupt-controller@1400000 {
        compatible = "arm,gic-400";
        #interrupt-cells = <3>;
        interrupt-controller;
        reg = <0x0 0x1401000 0 0x1000>, /* GICD */
              <0x0 0x1402000 0 0x2000>, /* GICC */
              <0x0 0x1404000 0 0x2000>, /* GICH */
              <0x0 0x1406000 0 0x2000>; /* GICV */
        interrupts = <1 9 0xf08>;
};

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


  Commit: 1b4c2b27ccf2f873bc1e66e9b0182a76f1191a3c
      
https://github.com/siemens/jailhouse/commit/1b4c2b27ccf2f873bc1e66e9b0182a76f1191a3c
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    M hypervisor/arch/arm/Makefile

  Log Message:
  -----------
  arm: Enforce soft-float ABI

Required with newer gcc as we may otherwise "gain" vector instructions
that are not supported by Jailhouse. This is analogously to the kernel.

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


  Commit: 5a9b08b44fd429feb90abcaa4fe01b1867f66225
      
https://github.com/siemens/jailhouse/commit/5a9b08b44fd429feb90abcaa4fe01b1867f66225
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    M hypervisor/arch/arm/entry.S

  Log Message:
  -----------
  arm: entry: Drop broken attempt to restore CPSR

This is neither the proper way to restor CPSR (we do not return to Linux
on error via eret) nor is this needed (no relevant change to CPSR done
if we return prior to switching to EL2). So drop this.

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


  Commit: 9638d507b2f979e0c46a3b557372166408f91b20
      
https://github.com/siemens/jailhouse/commit/9638d507b2f979e0c46a3b557372166408f91b20
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    M hypervisor/arch/arm/control.c
    M hypervisor/arch/arm/mmio.c
    M hypervisor/arch/arm/setup.c
    M hypervisor/arch/arm/traps.c

  Log Message:
  -----------
  arm: Fix access to SPSR from EL2

When in EL2, banked SPSR_hyp is not accessible. We rather want SPSR of
the current mode. For writing, that means appending fsxc which selects
all bits. Reading means dropping the bank suffix.

Noticed via QEMU. Real HW might have done the intended access so far.

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


  Commit: 1c3a9508644c5f1d9fd5d6d0cdc8caf28c90b35c
      
https://github.com/siemens/jailhouse/commit/1c3a9508644c5f1d9fd5d6d0cdc8caf28c90b35c
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

  Changed paths:
    M inmates/Makefile

  Log Message:
  -----------
  inmates: arm: Enforce soft-float ABI

Analogously to the hypervisor core: Our inmates do not set up vector
extensions, thus stumble if the compiler generates corresponding code.

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


  Commit: 3cf261b06c63f165a48ad1671596e8eb7de4a3f0
      
https://github.com/siemens/jailhouse/commit/3cf261b06c63f165a48ad1671596e8eb7de4a3f0
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-27 (Sun, 27 Dec 2020)

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

  Log Message:
  -----------
  configs: arm: Add QEMU target

Derived from the arm64 QEMU target, this adds one for 32-bit ARM which
also stresses the virtual GICv2. Works with QEMU 4.2.1 or newer.

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


  Commit: 5c5cde20c9a855224aef052d9ad34a60fb98bcea
      
https://github.com/siemens/jailhouse/commit/5c5cde20c9a855224aef052d9ad34a60fb98bcea
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

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

  Log Message:
  -----------
  arm-common: Account for SMCCC versions > 1.1

We must not limit support to 1.1 exactly. Anything newer is fine as
well. Required since TF-A 2.3.

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


  Commit: 4d759c5d5634bdbd56ef1e463be5736bb5d7ef9a
      
https://github.com/siemens/jailhouse/commit/4d759c5d5634bdbd56ef1e463be5736bb5d7ef9a
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

  Changed paths:
    M hypervisor/arch/arm-common/include/asm/percpu.h
    M hypervisor/arch/arm-common/smccc.c

  Log Message:
  -----------
  arm-common: Add handling of SMCCC_ARCH_WORKAROUND_2 requests

Jailhouse does not need this workaround as it isolates secrets via
CPU and, thus, cell-private mappings. However, guests may request
control over the workaround. As it is per CPU, we can grant access.

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


  Commit: b93e9798b6475bd75ba7ddbfad2f58905cbe0090
      
https://github.com/siemens/jailhouse/commit/b93e9798b6475bd75ba7ddbfad2f58905cbe0090
  Author: Jan Kiszka <[email protected]>
  Date:   2020-12-30 (Wed, 30 Dec 2020)

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

  Log Message:
  -----------
  arm-common: Forward all SMCCC_ARCH_WORKAROUND_* feature queries

This adds full support for SMCCC_ARCH_WORKAROUND_2 and ensures that
there is no deviation between features reported before and after
enabling Jailhouse.

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


Compare: 
https://github.com/siemens/jailhouse/compare/5498cf9f5013...b93e9798b647

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/siemens/jailhouse/push/refs/heads/coverity_scan/5498cf-b93e97%40github.com.

Reply via email to