[siemens/jailhouse] ae6f60: arm: smp: Concentrate non-PSCI logic in Versatile ...

4 views
Skip to first unread message

GitHub

unread,
Jul 14, 2015, 2:07:36 AM7/14/15
to jailho...@googlegroups.com
Branch: refs/heads/next
Home: https://github.com/siemens/jailhouse
Commit: ae6f6054cf08a5d604fbcdb3d0512d140855bb24
https://github.com/siemens/jailhouse/commit/ae6f6054cf08a5d604fbcdb3d0512d140855bb24
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

Changed paths:
M hypervisor/arch/arm/include/asm/smp.h
M hypervisor/arch/arm/smp-vexpress.c
M hypervisor/arch/arm/smp.c

Log Message:
-----------
arm: smp: Concentrate non-PSCI logic in Versatile Express module

We only keep the non-PSCI CPU hotplug support around for the sake of
old Versatile Express boards/models. No new boards will be accepted that
do not support the PSCI standard. Therefore, concentrate all functions
that were once considered reusable in the smp-vexpress module, folding
them into their only callers.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: 7fef7fcf13835c3ffcdeab9d3638f254f6a4a569
https://github.com/siemens/jailhouse/commit/7fef7fcf13835c3ffcdeab9d3638f254f6a4a569
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

Changed paths:
M hypervisor/arch/arm/include/asm/smp.h
M hypervisor/arch/arm/smp-sun7i.c
M hypervisor/arch/arm/smp-tegra124.c
M hypervisor/arch/arm/smp-vexpress.c

Log Message:
-----------
arm: smp: Remove unused type field from smp_ops

Was never read and actually initialized incorrectly for sun7i and
tegra124.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: 87cca186ddd7761e25c3a79c7b38173101657a01
https://github.com/siemens/jailhouse/commit/87cca186ddd7761e25c3a79c7b38173101657a01
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

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

Log Message:
-----------
arm: Fix arm_page_table_empty

The size of a pt_entry_t is a reference to an entry, not the entry type
itself. So we were calculating with an entry size of 4 instead of 8,
overrunning the table during empty checks. This specifically caused
page leakages during cell destruction.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: dc40ae12215465156326e3bf5998cfe118e89635
https://github.com/siemens/jailhouse/commit/dc40ae12215465156326e3bf5998cfe118e89635
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

Changed paths:
M hypervisor/arch/arm/control.c
M hypervisor/arch/arm/gic-v2.c
M hypervisor/arch/arm/gic-v3.c
M hypervisor/arch/arm/include/asm/irqchip.h
M hypervisor/arch/arm/irqchip.c
M hypervisor/arch/arm/setup.c

Log Message:
-----------
arm: Account for errors during irqchip cell_init

The cell_init callback of GICv2 should report the result of the mapping
request, thus needs a channel to return an error code. Extend the call
chain accordingly.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: ae1454d001168a8270575b460954ca199a6317c7
https://github.com/siemens/jailhouse/commit/ae1454d001168a8270575b460954ca199a6317c7
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

Changed paths:
M hypervisor/arch/arm/gic-v2.c

Log Message:
-----------
arm: Use paging_create instead of arch_map_memory_region for GICv2 mapping

It's actually simpler to invoke paging_create directly instead of
preparing arguments for arch_map_memory_region first.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: ff53f7f6221e8780667bbe509bd0a688f70734a8
https://github.com/siemens/jailhouse/commit/ff53f7f6221e8780667bbe509bd0a688f70734a8
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

Changed paths:
M hypervisor/arch/arm/control.c
M hypervisor/arch/arm/gic-v2.c

Log Message:
-----------
arm: Unmap virtual GIC on cell destruction

This fixes a leak on cell destruction because we left the GICv2 mapped,
thus didn't free all paging structures. This also means we need to run
the irqchip cleanup before the cell MMU destruction.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: 7aede33116895a6749c74b4911f6046bba18f54d
https://github.com/siemens/jailhouse/commit/7aede33116895a6749c74b4911f6046bba18f54d
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

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

Log Message:
-----------
arm: Use more panic_printk for fatal error messages

Fatal errors that will leave CPUs unusable and may occur in parallel on
multiple CPUs should be reported via panic_printk to maintain
readability of the output. Adjust some locations for unexpected HYP
exits and failing PSCI_CPU_OFF.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: 9c2e5c0513dc75937c0c6eadbfc403c6b08edd25
https://github.com/siemens/jailhouse/commit/9c2e5c0513dc75937c0c6eadbfc403c6b08edd25
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

Changed paths:
M hypervisor/arch/arm/dbg-write.c
M hypervisor/arch/x86/dbg-write.c
M hypervisor/printk-core.c
M inmates/lib/arm/printk.c
M inmates/lib/x86/printk.c

Log Message:
-----------
core, inmates: Move \r injection into console_write / arch_dbg_write

This moves the injection of \r on \n into the console_write and
arch_dbg_write implementations, causing some minor duplication but also
fixing injection for %s strings. Furthermore, this allows to skip the
injection for consoles the may not need it.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Commit: 6089d65dd79660f566e04b5efec9c9da22ca8c6d
https://github.com/siemens/jailhouse/commit/6089d65dd79660f566e04b5efec9c9da22ca8c6d
Author: Jan Kiszka <jan.k...@siemens.com>
Date: 2015-07-14 (Tue, 14 Jul 2015)

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

Log Message:
-----------
arm: Improve reporting of unhandled HYP exits

Add a simple register dump and unify the reporting format. Specifically
useful to debug hypervisor crashes.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>


Compare: https://github.com/siemens/jailhouse/compare/a76b05d20742...6089d65dd796
Reply all
Reply to author
Forward
0 new messages