Skip to content

KVM: arm64: Cleanup the HCR_xyz macros

Marc Zyngier kvm kvmarm linux-arm-kernel 1 version Applied

Status from this message: Applied to fixes, thanks!

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2KVM: arm64: Convert HCR_xyz to HCR_EL2_xyzarch/arm64/include/asm/el2_setup.h arch/arm64/include/asm/hardirq.h arch/arm64/include/asm/kvm_arm.h +23 more+182 -1820 replies
2/2KVM: arm64: Get rid of compatibility HCR_EL2 aliasesarch/arm64/include/asm/kvm_arm.h+0 -650 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchItaru KitayamaFuad Tabba
SeriesT-b R-b T-b
1/2
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/2] KVM: arm64: Cleanup the HCR_xyz macros

I've been postponing this for some time, but it finally happened: no more HCR_xyz macros.

This series converts the whole thing in one go, using the script fragment contained in the first patch. No AI agent involved, all bugs are mine! I intend to take this in for 7.4-rc1.

Patches on top of kvmarm-7.4.

Marc Zyngier (2):
KVM: arm64: Convert HCR_xyz to HCR_EL2_xyz
KVM: arm64: Get rid of compatibility HCR_EL2 aliases

 arch/arm64/include/asm/el2_setup.h      |   4 +-
 arch/arm64/include/asm/hardirq.h        |   6 +-
 arch/arm64/include/asm/kvm_arm.h        |  79 ++--------------
 arch/arm64/include/asm/kvm_emulate.h    |  18 ++--
 arch/arm64/include/asm/kvm_mte.h        |   4 +-
 arch/arm64/include/asm/kvm_ptrauth.h    |   4 +-
 arch/arm64/kernel/head.S                |   4 +-
 arch/arm64/kvm/arm.c                    |  28 +++---
 arch/arm64/kvm/at.c                     |  18 ++--
 arch/arm64/kvm/emulate-nested.c         | 116 ++++++++++++------------
 arch/arm64/kvm/guest.c                  |   2 +-
 arch/arm64/kvm/handle_exit.c            |   2 +-
 arch/arm64/kvm/hyp/include/hyp/switch.h |  14 +--
 arch/arm64/kvm/hyp/nvhe/host.S          |   2 +-
 arch/arm64/kvm/hyp/nvhe/hyp-init.S      |   2 +-
 arch/arm64/kvm/hyp/nvhe/hyp-main.c      |  20 ++--
 arch/arm64/kvm/hyp/nvhe/mem_protect.c   |   6 +-
 arch/arm64/kvm/hyp/nvhe/pkvm.c          |  32 +++----
 arch/arm64/kvm/hyp/vgic-v3-sr.c         |   4 +-
 arch/arm64/kvm/hyp/vhe/switch.c         |  12 +--
 arch/arm64/kvm/hyp/vhe/tlb.c            |   2 +-
 arch/arm64/kvm/inject_fault.c           |   6 +-
 arch/arm64/kvm/mmu.c                    |   8 +-
 arch/arm64/kvm/nested.c                 |   8 +-
 arch/arm64/kvm/sys_regs.c               |  24 ++---
 arch/arm64/kvm/vgic/vgic-v3-nested.c    |   4 +-
 26 files changed, 182 insertions(+), 247 deletions(-)
Signature · 1 line
2.47.3