]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: implement the cell destruction
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Wed, 25 Jun 2014 17:55:02 +0000 (18:55 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commit34855c22c0fd360fc2281617adc6d00299adf235
tree6d01c396ab13572c5ab135345d18d628a9bdc192
parent9e0bc4dffb7b039684a945b863e58de3d0ea9c8a
arm: implement the cell destruction

Give the CPUs back to Linux when a cell is destroyed, after resetting its
whole context.

This patch uses the old vexpress CPU hotplug system in Linux: the
secondary startup function address is kept in the system flags, so the
cpu_reset function will simply jump there after resetting the CPU state.
A future patch will add PSCI hotplug support, and once the hypervisor
has access to a device tree, this spin function will need to be set
dynamically in a `struct hotplug_ops'.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
[Jan: switch to mmio accessors]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/Makefile
hypervisor/arch/arm/control.c
hypervisor/arch/arm/include/asm/control.h
hypervisor/arch/arm/include/asm/platform.h
hypervisor/arch/arm/mmu_cell.c
hypervisor/arch/arm/setup.c
hypervisor/arch/arm/spin.c [new file with mode: 0644]