]> xenbits.xensource.com Git - xen.git/commit
xen/arm: traps: MMIO should only be emulated for fault translation
authorJulien Grall <julien.grall@arm.com>
Thu, 4 Aug 2016 17:50:05 +0000 (18:50 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Thu, 4 Aug 2016 17:55:35 +0000 (10:55 -0700)
commitdef427387f37cec21a68f280d8964d1f0d61fb74
tree5ace8fba070c631fc4497e842ea8f84de819d877
parent8082e6287ce9f718d04898d2032f56dea13c21dd
xen/arm: traps: MMIO should only be emulated for fault translation

The function do_trap_data_abort_guest assumes that a stage-2 data abort
can only be taken for a translation fault or permission fault today.

Whilst this is true today, it might not be in the future. Rather than
emulating the MMIO for any fault other than the permission one, print
a warning message when the fault is not handled by Xen.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c