linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCHv2 0/7] arm64/kvm: common ESR_ELx definitions and decoding
@ 2015-01-12 16:45 Mark Rutland
  2015-01-12 16:45 ` [PATCHv2 1/7] arm64: introduce common ESR_ELx_* definitions Mark Rutland
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Mark Rutland @ 2015-01-12 16:45 UTC (permalink / raw)
  To: linux-arm-kernel

Currently we have two sets of macros used for ESR_ELx handling, one used
by core arm64 code and the other used by KVM. These differ slightly in
naming convention and style of definition.

This patch series introduces and migrates all users to a common set of
macros for ESR_ELx handling, preventing further drift.

Additionally this series adds exception class decoding when reporting
exceptions, saving deveopers from having to perform tedious mental
arithmetic to figure out what the likely cause of an unexpected
exception was.

Since v1 [1]:
* Reorder patches to maintain KVM bisectability.
* Fix bad definitions (ESR_ELx_SAS and ESR_ELx_FSC_PERM).
* Introcuce ESR_ELx_SAS_SHIFT and undo bad rework of 
  kvm_vcpu_dabt_get_as.
* Make "Unallocated EC" comments consistent in ESR_ELx_EC_* definition
  list.

Many thanks to those who have reviewed this so far.

Mark.

[1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/313934.html

Mark Rutland (7):
  arm64: introduce common ESR_ELx_* definitions
  arm64: move to ESR_ELx macros
  arm64: decode ESR_ELx.EC when reporting exceptions
  arm64: kvm: move to ESR_ELx macros
  arm64: remove ESR_EL1_* macros
  arm64: kvm: remove ESR_EL2_* macros
  arm64: kvm: decode ESR_ELx.EC when reporting exceptions

 arch/arm64/include/asm/esr.h         | 117 +++++++++++++++++++++++++----------
 arch/arm64/include/asm/kvm_arm.h     |  73 ++--------------------
 arch/arm64/include/asm/kvm_emulate.h |  28 +++++----
 arch/arm64/kernel/entry.S            |  64 +++++++++----------
 arch/arm64/kernel/signal32.c         |   2 +-
 arch/arm64/kernel/traps.c            |  50 ++++++++++++++-
 arch/arm64/kvm/emulate.c             |   5 +-
 arch/arm64/kvm/handle_exit.c         |  39 ++++++------
 arch/arm64/kvm/hyp.S                 |  17 ++---
 arch/arm64/kvm/inject_fault.c        |  14 ++---
 arch/arm64/kvm/sys_regs.c            |  23 ++++---
 arch/arm64/mm/fault.c                |   2 +-
 12 files changed, 237 insertions(+), 197 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2015-01-15 19:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-12 16:45 [PATCHv2 0/7] arm64/kvm: common ESR_ELx definitions and decoding Mark Rutland
2015-01-12 16:45 ` [PATCHv2 1/7] arm64: introduce common ESR_ELx_* definitions Mark Rutland
2015-01-12 16:45 ` [PATCHv2 2/7] arm64: move to ESR_ELx macros Mark Rutland
2015-01-12 16:45 ` [PATCHv2 3/7] arm64: decode ESR_ELx.EC when reporting exceptions Mark Rutland
2015-01-12 16:45 ` [PATCHv2 4/7] arm64: kvm: move to ESR_ELx macros Mark Rutland
2015-01-12 16:45 ` [PATCHv2 5/7] arm64: remove ESR_EL1_* macros Mark Rutland
2015-01-12 16:45 ` [PATCHv2 6/7] arm64: kvm: remove ESR_EL2_* macros Mark Rutland
2015-01-12 16:45 ` [PATCHv2 7/7] arm64: kvm: decode ESR_ELx.EC when reporting exceptions Mark Rutland
2015-01-12 19:44 ` [PATCHv2 0/7] arm64/kvm: common ESR_ELx definitions and decoding Christoffer Dall
2015-01-15 12:42   ` Mark Rutland
2015-01-15 13:08     ` Christoffer Dall
2015-01-15 15:12       ` Catalin Marinas
2015-01-15 19:16         ` Christoffer Dall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).