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

[Minios-devel] [UNIKRAFT PATCH 15/22] plat/kvm: Invalidate D-Cache that may have been modified for Arm64


  • To: <minios-devel@xxxxxxxxxxxxxxxxxxxx>, <simon.kuenzer@xxxxxxxxx>
  • From: Wei Chen <wei.chen@xxxxxxx>
  • Date: Thu, 8 Nov 2018 09:51:46 +0000
  • Authentication-results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; lists.xenproject.org; dkim=none (message not signed) header.d=none;lists.xenproject.org; dmarc=bestguesspass action=none header.from=arm.com;
  • Cc: Kaly.Xin@xxxxxxx, nd@xxxxxxx, wei.chen@xxxxxxx
  • Delivery-date: Thu, 08 Nov 2018 09:53:20 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Nodisclaimer: True
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

DTB, TEXT and RODATA would not be modified while booting, so we just
need to invalidate and clean the area that may have been modified:
DATA, BSS, PAGETABLE and BOOTSTACK.

Signed-off-by: Wei Chen <wei.chen@xxxxxxx>
---
 plat/kvm/arm/pagetable64.S | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/plat/kvm/arm/pagetable64.S b/plat/kvm/arm/pagetable64.S
index d4abaff..cf30584 100644
--- a/plat/kvm/arm/pagetable64.S
+++ b/plat/kvm/arm/pagetable64.S
@@ -239,10 +239,10 @@ ENTRY(start_mmu)
 
         /*
         * Invalidate the D-Cache to avoid using invalid data that existed
-        * in D-Cache. Invalidate ranges: DTB, TEXT, DATA, BSS, PAGETABLE
-        * and BOOTSTACK.
+        * in D-Cache. Invalidate ranges that may have been modified:
+        * DATA, BSS, PAGETABLE and BOOTSTACK.
         */
-       ldr x0, =_dtb
+       ldr x0, =_data
        ldr x1, =_end
        add x1, x1, #PAGE_TABLE_SIZE
        add x1, x1, #__STACK_SIZE
-- 
2.17.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

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