From: Jan Kiszka <[email protected]> This service only works for cells that are suspended. Add this to the common function description. Also drop the redundant note from the ARM implementation.
Signed-off-by: Jan Kiszka <[email protected]> --- hypervisor/arch/arm-common/control.c | 1 - hypervisor/include/jailhouse/control.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hypervisor/arch/arm-common/control.c b/hypervisor/arch/arm-common/control.c index 400490ae..44c66225 100644 --- a/hypervisor/arch/arm-common/control.c +++ b/hypervisor/arch/arm-common/control.c @@ -200,7 +200,6 @@ void arch_cell_destroy(struct cell *cell) arm_paging_cell_destroy(cell); } -/* Note: only supports synchronous flushing as triggered by config_commit! */ void arch_flush_cell_vcpu_caches(struct cell *cell) { unsigned int cpu; diff --git a/hypervisor/include/jailhouse/control.h b/hypervisor/include/jailhouse/control.h index e0c21270..9d1e74fa 100644 --- a/hypervisor/include/jailhouse/control.h +++ b/hypervisor/include/jailhouse/control.h @@ -228,6 +228,8 @@ int arch_unmap_memory_region(struct cell *cell, * got restricted, and the cell should keep running. * @param cell Cell for which the caches should get flushed * + * @note Target cell must be suspended. + * * @see public_per_cpu::flush_vcpu_caches */ void arch_flush_cell_vcpu_caches(struct cell *cell); -- 2.36.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/20220627131329.3659-5-ralf.ramsauer%40oth-regensburg.de.
