[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen/arm: flush dcache after memcpy'ing the kernel image
# HG changeset patch # User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> # Date 1358772031 0 # Node ID b5212ea378292bb6564c215c733d81433a5b5083 # Parent 002f86162d7e836acc2a00966cc1dc0ab36c2de2 xen/arm: flush dcache after memcpy'ing the kernel image After memcpy'ing the kernel in guest memory we need to flush the dcache to make sure that the data actually reaches the memory before we start executing guest code with caches disabled. copy_from_paddr is the function that does the copy, so add a flush_xen_dcache_va_range there. Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r 002f86162d7e -r b5212ea37829 xen/arch/arm/kernel.c --- a/xen/arch/arm/kernel.c Mon Jan 21 12:40:31 2013 +0000 +++ b/xen/arch/arm/kernel.c Mon Jan 21 12:40:31 2013 +0000 @@ -54,6 +54,7 @@ void copy_from_paddr(void *dst, paddr_t set_fixmap(FIXMAP_MISC, p, attrindx); memcpy(dst, src + s, l); + flush_xen_dcache_va_range(dst, l); paddr += l; dst += l; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |