From: Nikhil Devshatwar <[email protected]> Update the cell_state to SHUT_DOWN as part of the cell_destroy This will make sure that the memory_unmap calls and unit's cell_exit calls can see the correct status of the cell.
Signed-off-by: Nikhil Devshatwar <[email protected]> --- hypervisor/control.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypervisor/control.c b/hypervisor/control.c index a0a7532c..2ab6beac 100644 --- a/hypervisor/control.c +++ b/hypervisor/control.c @@ -363,6 +363,8 @@ static void cell_destroy_internal(struct cell *cell) unsigned int cpu, n; struct unit *unit; + cell->comm_page.comm_region.cell_state = JAILHOUSE_CELL_SHUT_DOWN; + for_each_cpu(cpu, cell->cpu_set) { arch_park_cpu(cpu); -- 2.17.1 -- 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/20200113104647.25884-2-nikhil.nd%40ti.com.
