]> rtime.felk.cvut.cz Git - jailhouse.git/commit
driver: sync I-cache, D-cache and memory
authorDmitry Voytik <dmitry.voytik@huawei.com>
Fri, 17 Jun 2016 12:37:29 +0000 (14:37 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Sun, 26 Jun 2016 07:16:27 +0000 (09:16 +0200)
commit37f0f7e117964c0c24a67485d3e8ca4781fab734
tree84e8b94a7a720c7e7cb08dfc3d8df717ce391ab3
parenteda93050c75d3f3ef4509d3faccc451b0946b607
driver: sync I-cache, D-cache and memory

Syncronize I-cache with D-cache after loading the hypervisor
image or a cell image. This must be done in arm64 according to
ARMv8 ARM spec. See page 1712, D3.4.6 "Non-cacheable accesses
and instruction caches".

This patch fixes coherency problems observed on real HW targets.
On x86 this operation is a NOP.

Signed-off-by: Dmitry Voytik <dmitry.voytik@huawei.com>
Signed-off-by: Antonios Motakis <antonios.motakis@huawei.com>
[antonios.motakis@huawei.com: edited comments]

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
driver/cell.c
driver/main.c