All of lore.kernel.org
 help / color / mirror / Atom feed
* [RESEND PATCH 0/2] arm/arm64: kvm: Disable branch profiling in HYP code
@ 2017-10-20 11:34 ` Julien Thierry
  0 siblings, 0 replies; 9+ messages in thread
From: Julien Thierry @ 2017-10-20 11:34 UTC (permalink / raw)
  To: linux-arm-kernel, kvmarm; +Cc: marc.zyngier, Julien Thierry

[Resending for Christoffer and adding kvmarm to recipients]

Hi,

When enabling branch profiling, a lockup occurs at boot time, after
displaying: "kvm [1]: Hyp mode initialized successfully"

The issue is caused by the Hyp code getting instrumented and trying to
access unmapped code or data, which happens when trying to initialize EL2.

So it also seems like KVM is misleadingly announcing it was initialized and
yet gets stuck during initialization.

* First patch deals with printing the initialization message once KVM has
  fully initialized Hyp mode
* Second patch actually disables branch profiling instrumentation in Hyp
  code

Cheers,

Julien Thierry (2):
  arm/arm64: kvm: Move initialization completion message
  arm/arm64: kvm: Disable branch profiling in HYP code

 arch/arm/kvm/hyp/Makefile   |  2 +-
 arch/arm64/kvm/hyp/Makefile |  2 +-
 virt/kvm/arm/arm.c          | 31 ++++++++++++++-----------------
 3 files changed, 16 insertions(+), 19 deletions(-)

--
1.9.1

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

end of thread, other threads:[~2017-10-21 15:04 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-20 11:34 [RESEND PATCH 0/2] arm/arm64: kvm: Disable branch profiling in HYP code Julien Thierry
2017-10-20 11:34 ` Julien Thierry
2017-10-20 11:34 ` [RESEND PATCH 1/2] arm/arm64: kvm: Move initialization completion message Julien Thierry
2017-10-20 11:34   ` Julien Thierry
2017-10-20 11:34 ` [RESEND PATCH 2/2] arm/arm64: kvm: Disable branch profiling in HYP code Julien Thierry
2017-10-20 11:34   ` Julien Thierry
2017-10-20 11:34   ` Julien Thierry
2017-10-21 15:04 ` [RESEND PATCH 0/2] " Christoffer Dall
2017-10-21 15:04   ` Christoffer Dall

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.