[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[xen staging] Revert "xen/arm: mm: flush_page_to_ram() only need to clean to PoC"



commit a33ad60cc3c2a107b43f9c368b1718eda3282760
Author:     Julien Grall <jgrall@xxxxxxxxxx>
AuthorDate: Tue Apr 13 17:15:39 2021 +0100
Commit:     Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Tue Apr 13 17:15:39 2021 +0100

    Revert "xen/arm: mm: flush_page_to_ram() only need to clean to PoC"
    
    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@xxxxxxxxxx>
---
 xen/arch/arm/mm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c
index 2f11d214e1..59f8a3f15f 100644
--- a/xen/arch/arm/mm.c
+++ b/xen/arch/arm/mm.c
@@ -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);
 
     /*
--
generated by git-patchbot for /home/xen/git/xen.git#staging



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.