arm/arm64: kvm: Disable branch profiling in HYP code
authorJulien Thierry <julien.thierry@arm.com>
Fri, 20 Oct 2017 11:34:17 +0000 (12:34 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sat, 21 Oct 2017 15:03:20 +0000 (17:03 +0200)
commitf9b269f3098121b5d54aaf822e0898c8ed1d3fec
tree9aa75d23cec3504aefc170d6d2dee142b689c6a0
parentfe7d7b03c61f6dab70a973fb32c90f2254784e03
arm/arm64: kvm: Disable branch profiling in HYP code

When HYP code runs into branch profiling code, it attempts to jump to
unmapped memory, causing a HYP Panic.

Disable the branch profiling for code designed to run at HYP mode.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: <stable@vger.kernel.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/kvm/hyp/Makefile
arch/arm64/kvm/hyp/Makefile