public inbox for kvmarm@lists.cs.columbia.edu
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Add arm64 vcpu exit reasons and tracepoint
@ 2022-03-17  0:56 Jing Zhang
  2022-03-17  0:56 ` [PATCH v1 1/2] KVM: arm64: Add arch specific exit reasons Jing Zhang
  2022-03-17  0:56 ` [PATCH v1 2/2] KVM: arm64: Add debug tracepoint for vcpu exits Jing Zhang
  0 siblings, 2 replies; 7+ messages in thread
From: Jing Zhang @ 2022-03-17  0:56 UTC (permalink / raw)
  To: KVM, KVMARM, Marc Zyngier, Will Deacon, Paolo Bonzini,
	David Matlack, Sean Christopherson, Oliver Upton, Reiji Watanabe,
	Ricardo Koller, Raghavendra Rao Ananta

This patch adds a field in arm64 arch vcpu structure to save the last exit
reason, which could be poked by the hook provided by the tracepoint.
A previous solution adding vcpu exits stats was discussed here:
https://lore.kernel.org/all/20210922010851.2312845-3-jingzhangos@google.com.
As Marc suggested, a tracepoint is preferred for those heavy arm64 vcpu exit
reason stats.

Jing Zhang (2):
  KVM: arm64: Add arch specific exit reasons
  KVM: arm64: Add debug tracepoint for vcpu exits

 arch/arm64/include/asm/kvm_emulate.h |  5 +++
 arch/arm64/include/asm/kvm_host.h    | 36 ++++++++++++++++
 arch/arm64/kvm/arm.c                 |  2 +
 arch/arm64/kvm/handle_exit.c         | 62 +++++++++++++++++++++++++---
 arch/arm64/kvm/mmu.c                 |  4 ++
 arch/arm64/kvm/sys_regs.c            |  6 +++
 arch/arm64/kvm/trace_arm.h           |  8 ++++
 7 files changed, 118 insertions(+), 5 deletions(-)


base-commit: 9872e6bc08d6ef6de79717ff6bbff0f297c134ef
-- 
2.35.1.723.g4982287a31-goog

_______________________________________________
kvmarm mailing list
kvmarm@lists.cs.columbia.edu
https://lists.cs.columbia.edu/mailman/listinfo/kvmarm

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

end of thread, other threads:[~2022-03-21 19:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-17  0:56 [PATCH v1 0/2] Add arm64 vcpu exit reasons and tracepoint Jing Zhang
2022-03-17  0:56 ` [PATCH v1 1/2] KVM: arm64: Add arch specific exit reasons Jing Zhang
2022-03-17 11:34   ` Marc Zyngier
2022-03-17  0:56 ` [PATCH v1 2/2] KVM: arm64: Add debug tracepoint for vcpu exits Jing Zhang
2022-03-17  5:37   ` Oliver Upton
2022-03-21 17:14     ` David Matlack
2022-03-17 11:43   ` Marc Zyngier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox