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

[Xen-changelog] [xen stable-4.4] xen: arm: take FIQ exceptions to Xen not guest by setting HCR_EL2.FMO



commit 652fb44ffbc5f3ff576b6d2349a49910170e7d2b
Author:     Ian Campbell <ian.campbell@xxxxxxxxxx>
AuthorDate: Thu Jun 26 09:53:42 2014 +0100
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Wed Jul 2 10:47:45 2014 +0100

    xen: arm: take FIQ exceptions to Xen not guest by setting HCR_EL2.FMO
    
    As with HCR_EL2.{IMO,AMO} we want to route FIQs to Xen not the guest. See 
ARM
    ARM DDI 0406C.b B1.8.4.
    
    So far none of the platforms which we support use FIQ for anything, but 
when we
    end up supporting one it would be far better to surprise Xen with them than
    whatever guest happens to be running...
    
    Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    Acked-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
    Acked-by: Julien Grall <julien.grall@xxxxxxxxxx>
    (cherry picked from commit 4bb74e39987b428429c2aacad7f59356d4942e39)
    
    Conflicts:
        xen/arch/arm/traps.c
---
 xen/arch/arm/traps.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c
index 817f72e..04720b1 100644
--- a/xen/arch/arm/traps.c
+++ b/xen/arch/arm/traps.c
@@ -89,8 +89,8 @@ void __cpuinit init_traps(void)
                  CPTR_EL2);
 
     /* Setup hypervisor traps */
-    WRITE_SYSREG(HCR_PTW|HCR_BSU_OUTER|HCR_AMO|HCR_IMO|HCR_VM|HCR_TWI|HCR_TSC|
-                 HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
+    WRITE_SYSREG(HCR_PTW|HCR_BSU_OUTER|HCR_AMO|HCR_IMO|HCR_FMO|HCR_VM|
+                 HCR_TWI|HCR_TSC|HCR_TAC|HCR_SWIO|HCR_TIDCP, HCR_EL2);
     isb();
 }
 
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.4

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

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