All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] KVM: arm64: timer fixes and optimisations
@ 2023-01-12 12:38 ` Marc Zyngier
  0 siblings, 0 replies; 10+ messages in thread
From: Marc Zyngier @ 2023-01-12 12:38 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm, kvmarm, kvm
  Cc: D Scott Phillips, Ganapatrao Kulkarni, James Morse,
	Suzuki K Poulose, Oliver Upton, Zenghui Yu

Having been busy on the NV front the past few weeks, I collected a
small set of fixes/improvements that make sense even outside of NV.

The first one is an interesting fix (actually a regression introduced
by the initial set of NV-related patches) reported by Scott and
Ganapatrao, where we fail to recognise that a timer that has fired
doesn't need to fire again. And again.

The second patch is a definite performance improvement on nVHE systems
when accessing the emulated physical timer. It also makes NV bearable
in some conditions (with FEAT_ECV, for example).

The last patch is more of a sanity check. There is no reason to BUG()
if we can avoid it at all and kill the guest instead!

These patches are 6.3 candidates, although the first one could be a
6.2 fix.

	M.

Marc Zyngier (3):
  KVM: arm64: Don't arm a hrtimer for an already pending timer
  KVM: arm64: Reduce overhead of trapped timer sysreg accesses
  KVM: arm64: timers: Don't BUG() on unhandled timer trap

 arch/arm64/kvm/arch_timer.c | 77 +++++++++++++++++++++++--------------
 arch/arm64/kvm/sys_regs.c   |  4 +-
 2 files changed, 52 insertions(+), 29 deletions(-)

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

end of thread, other threads:[~2023-01-30 18:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-12 12:38 [PATCH 0/3] KVM: arm64: timer fixes and optimisations Marc Zyngier
2023-01-12 12:38 ` Marc Zyngier
2023-01-12 12:38 ` [PATCH 1/3] KVM: arm64: Don't arm a hrtimer for an already pending timer Marc Zyngier
2023-01-12 12:38   ` Marc Zyngier
2023-01-12 12:38 ` [PATCH 2/3] KVM: arm64: Reduce overhead of trapped timer sysreg accesses Marc Zyngier
2023-01-12 12:38   ` Marc Zyngier
2023-01-12 12:38 ` [PATCH 3/3] KVM: arm64: timers: Don't BUG() on unhandled timer trap Marc Zyngier
2023-01-12 12:38   ` Marc Zyngier
2023-01-30 18:30 ` [PATCH 0/3] KVM: arm64: timer fixes and optimisations Oliver Upton
2023-01-30 18:30   ` Oliver Upton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.