Revert "xen/arm: mm: flush_page_to_ram() only need to clean to PoC"
authorJulien Grall <jgrall@amazon.com>
Tue, 13 Apr 2021 16:15:39 +0000 (17:15 +0100)
committerJulien Grall <jgrall@amazon.com>
Tue, 13 Apr 2021 16:15:39 +0000 (17:15 +0100)
Some callers of flush_page_to_ram() expect the memory to be
invalidated. Reverts commit 9617d5f9c19d1d157629e1e436791509526e0ce5
to unblock OssTest.

Signed-off-by: Julien Grall <jgrall@amazon.com>
xen/arch/arm/mm.c

index 2f11d214e1848e38d313bfe5d8b0c3486438ba2b..59f8a3f15fd1c4880cb2a91498122578f619b0dd 100644 (file)
@@ -529,7 +529,7 @@ void flush_page_to_ram(unsigned long mfn, bool sync_icache)
 {
     void *v = map_domain_page(_mfn(mfn));
 
-    clean_dcache_va_range(v, PAGE_SIZE);
+    clean_and_invalidate_dcache_va_range(v, PAGE_SIZE);
     unmap_domain_page(v);
 
     /*