diff options
author | Marc Zyngier <[email protected]> | 2021-10-12 12:23:12 +0100 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2021-10-12 15:47:25 +0100 |
commit | 69adec18e94ff3ca20447916a3bd23ab1d06b878 (patch) | |
tree | 0351cc2d2dd99ff1ff5e2b294a9369c0be62de5e /tools/perf/util/trace-event-scripting.c | |
parent | e26bb75aa2f17fc079e6a24dff653b098e1f5d37 (diff) |
KVM: arm64: Fix reporting of endianess when the access originates at EL0
We currently check SCTLR_EL1.EE when computing the address of
a faulting guest access. However, the fault could have occured at
EL0, in which case the right bit to check would be SCTLR_EL1.E0E.
This is pretty unlikely to cause any issue in practice: You'd have
to have a guest with a LE EL1 and a BE EL0 (or the other way around),
and have mapped a device into the EL0 page tables.
Good luck with that!
Signed-off-by: Marc Zyngier <[email protected]>
Reviewed-by: Andrew Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions