]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
Don't clear HCR_VM bit when updating VTTBR.
authorJun Sun <jsun@junsun.net>
Mon, 10 Oct 2016 19:27:56 +0000 (12:27 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 16 Mar 2017 20:42:03 +0000 (13:42 -0700)
Currently function p2m_restore_state() would clear HCR_VM bit, i.e.,
disabling stage2 translation, before updating VTTBR register. After
some research and talking to ARM support, I got confirmed that this is not
necessary. We are currently working on a new platform that would need this
to be removed.

The patch is tested on FVP foundation model.

Signed-off-by: Jun Sun <jsun@junsun.net>
Acked-by: Steve Capper <steve.capper@linaro.org>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c

index 927c827ea196a85ca7f93bfc6b66ff415ce9c402..fab140d48d79bb2fb5ddbe52ed77b9c35f1eadf5 100644 (file)
@@ -140,8 +140,6 @@ void p2m_restore_state(struct vcpu *n)
         return;
 
     hcr = READ_SYSREG(HCR_EL2);
-    WRITE_SYSREG(hcr & ~HCR_VM, HCR_EL2);
-    isb();
 
     WRITE_SYSREG64(p2m->vttbr, VTTBR_EL2);
     isb();