Skip to content

KVM: arm64: Debug cleanups

Oliver Upton kvm kvmarm 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest posting 2/20 of 19 patches 1 replyIn review
  2. v4 posting 1/219 patches 3 repliesApplied
  3. v316 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v216 patches5 repliesSuperseded
v115 patches20 repliesSuperseded

Changes in v4 from the cover letter

- Collect Tested-by from James (thanks!)
- Delete stray if condition (Marc)
- Write mdcr_el2 from kvm_arm_setup_mdcr_el2() on VHE
- Purge DBGxVR/DBGxCR accessors since it isn't nice to look at

Patches in v4 posting 2/2 No applies recorded yet

None of the 19 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 00/19] KVM: arm64: Debug cleanups

Hopefully the last round.

v3 -> v4:
- Collect Tested-by from James (thanks!)
- Delete stray if condition (Marc)
- Write mdcr_el2 from kvm_arm_setup_mdcr_el2() on VHE
- Purge DBGxVR/DBGxCR accessors since it isn't nice to look at

Oliver Upton (19):
KVM: arm64: Drop MDSCR_EL1_DEBUG_MASK
KVM: arm64: Get rid of __kvm_get_mdcr_el2() and related warts
KVM: arm64: Track presence of SPE/TRBE in kvm_host_data instead of
vCPU
KVM: arm64: Move host SME/SVE tracking flags to host data
KVM: arm64: Write MDCR_EL2 directly from kvm_arm_setup_mdcr_el2()
KVM: arm64: Evaluate debug owner at vcpu_load()
KVM: arm64: Clean up KVM_SET_GUEST_DEBUG handler
KVM: arm64: Select debug state to save/restore based on debug owner
KVM: arm64: Remove debug tracepoints
KVM: arm64: Remove vestiges of debug_ptr
KVM: arm64: Use debug_owner to track if debug regs need save/restore
KVM: arm64: Reload vCPU for accesses to OSLAR_EL1
KVM: arm64: Compute MDCR_EL2 at vcpu_load()
KVM: arm64: Don't hijack guest context MDSCR_EL1
KVM: arm64: Manage software step state at load/put
KVM: arm64: nv: Honor MDCR_EL2.TDE routing for debug exceptions
KVM: arm64: Avoid reading ID_AA64DFR0_EL1 for debug save/restore
KVM: arm64: Fold DBGxVR/DBGxCR accessors into common set
KVM: arm64: Promote guest ownership for DBGxVR/DBGxCR reads

 arch/arm64/include/asm/kvm_asm.h           |   5 +-
 arch/arm64/include/asm/kvm_host.h          |  94 ++---
 arch/arm64/include/asm/kvm_nested.h        |   1 +
 arch/arm64/kvm/arm.c                       |  14 +-
 arch/arm64/kvm/debug.c                     | 384 +++++++--------------
 arch/arm64/kvm/emulate-nested.c            |  23 +-
 arch/arm64/kvm/fpsimd.c                    |  12 +-
 arch/arm64/kvm/guest.c                     |  31 +-
 arch/arm64/kvm/handle_exit.c               |   5 +-
 arch/arm64/kvm/hyp/include/hyp/debug-sr.h  |  42 ++-
 arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h |  43 ++-
 arch/arm64/kvm/hyp/nvhe/debug-sr.c         |  13 +-
 arch/arm64/kvm/hyp/nvhe/hyp-main.c         |   8 -
 arch/arm64/kvm/hyp/vhe/debug-sr.c          |   5 -
 arch/arm64/kvm/sys_regs.c                  | 245 ++++---------
 arch/arm64/kvm/trace_handle_exit.h         |  75 ----
 16 files changed, 353 insertions(+), 647 deletions(-)

base-commit: 78d4f34e2115b517bcbfe7ec0d018bbbb6f9b0b8

Signature · 1 line
2.39.5