aboutsummaryrefslogtreecommitdiff
path: root/async.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2013-12-12 10:29:19 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2013-12-13 13:38:50 +0100
commita94b36ddd6af28593c8a5171b5100e6c3dfc063e (patch)
treecd7c104fa7e08538dcff948109b21ae4a5b1ce97 /async.c
parent0522604b09b8cff54ba2450a7478da2a4d084817 (diff)
roms: Flush icache when writing roms to guest memory
We use the rom infrastructure to write firmware and/or initial kernel blobs into guest address space. So we're basically emulating the cache off phase on very early system bootup. That phase is usually responsible for clearing the instruction cache for anything it writes into cachable memory, to ensure that after reboot we don't happen to execute stale bits from the instruction cache. So we need to invalidate the icache every time we write a rom into guest address space. We do not need to do this for every DMA since the guest expects it has to flush the icache manually in that case. This fixes random reboot issues on e5500 (booke ppc) for me. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'async.c')
0 files changed, 0 insertions, 0 deletions