linux-arm-kernel.lists.infradead.org archive mirror
 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
  2017-10-20 11:34 ` [RESEND PATCH 1/2] arm/arm64: kvm: Move initialization completion message Julien Thierry
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julien Thierry @ 2017-10-20 11:34 UTC (permalink / raw)
  To: linux-arm-kernel

[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] 4+ messages in thread

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

Thread overview: 4+ 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 ` [RESEND PATCH 1/2] arm/arm64: kvm: Move initialization completion message Julien Thierry
2017-10-20 11:34 ` [RESEND PATCH 2/2] arm/arm64: kvm: Disable branch profiling in HYP code Julien Thierry
2017-10-21 15:04 ` [RESEND PATCH 0/2] " Christoffer Dall

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