linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/5] KVM: arm64: Cleanups and one optimization
@ 2021-07-14  9:55 Alexandru Elisei
  2021-07-14  9:55 ` [PATCH 1/5] KVM: arm64: Move vcpu_has_feature() to asm/kvm_host.h Alexandru Elisei
                   ` (4 more replies)
  0 siblings, 5 replies; 10+ messages in thread
From: Alexandru Elisei @ 2021-07-14  9:55 UTC (permalink / raw)
  To: maz, linux-arm-kernel, kvmarm; +Cc: james.morse, suzuki.poulose

The first four patches are cosmetic and aim to remove the inconsistencies I
noticed around ctxt_sys_reg/vcpu_sys_reg and how feature bits are checked.

The last patch is a minor optimization to the way KVM disables profiling
when running with VHE disabled.

Based on v5.14-rc1. The changes touch quite a lot of code, I'm happy to
rebase on another branch if necessary.

Boot tested on an odroid c4 with 4k, 16k and 64k guests running on 4k, 16k
and 64k hosts (so 3 x 3 tests in total).

Alexandru Elisei (5):
  KVM: arm64: Move vcpu_has_feature() to asm/kvm_host.h
  KVM: arm64: Use vcpu_has_feature() to check the feature bits
  KVM: arm64: Rename __vcpu_sys_reg -> vcpu_sys_reg
  KVM: arm64: Add __vcpu_sys_reg()
  KVM: arm64: nVHE: Remove unneeded isb() when modifying PMSCR_EL1

 arch/arm64/include/asm/kvm_emulate.h       |  7 +--
 arch/arm64/include/asm/kvm_host.h          | 13 +++--
 arch/arm64/kvm/arch_timer.c                | 20 ++++----
 arch/arm64/kvm/arm.c                       |  5 +-
 arch/arm64/kvm/fpsimd.c                    |  2 +-
 arch/arm64/kvm/guest.c                     |  6 +--
 arch/arm64/kvm/hyp/exception.c             |  4 +-
 arch/arm64/kvm/hyp/include/hyp/switch.h    |  6 +--
 arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h | 12 ++---
 arch/arm64/kvm/hyp/nvhe/debug-sr.c         |  1 -
 arch/arm64/kvm/pmu-emul.c                  | 58 +++++++++++-----------
 arch/arm64/kvm/psci.c                      |  2 +-
 arch/arm64/kvm/reset.c                     | 12 ++---
 arch/arm64/kvm/sys_regs.c                  | 54 ++++++++++----------
 arch/arm64/kvm/sys_regs.h                  |  4 +-
 include/kvm/arm_psci.h                     |  2 +-
 16 files changed, 103 insertions(+), 105 deletions(-)

-- 
2.32.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

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

end of thread, other threads:[~2021-07-15  9:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-14  9:55 [PATCH 0/5] KVM: arm64: Cleanups and one optimization Alexandru Elisei
2021-07-14  9:55 ` [PATCH 1/5] KVM: arm64: Move vcpu_has_feature() to asm/kvm_host.h Alexandru Elisei
2021-07-14  9:55 ` [PATCH 2/5] KVM: arm64: Use vcpu_has_feature() to check the feature bits Alexandru Elisei
2021-07-14  9:55 ` [PATCH 3/5] KVM: arm64: Rename __vcpu_sys_reg -> vcpu_sys_reg Alexandru Elisei
2021-07-14 10:23   ` Marc Zyngier
2021-07-14 10:40     ` Alexandru Elisei
2021-07-14  9:56 ` [PATCH 4/5] KVM: arm64: Add __vcpu_sys_reg() Alexandru Elisei
2021-07-14  9:56 ` [PATCH 5/5] KVM: arm64: nVHE: Remove unneeded isb() when modifying PMSCR_EL1 Alexandru Elisei
2021-07-14 18:20   ` Will Deacon
2021-07-15  9:31     ` Alexandru Elisei

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).