]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe
authorDavid Brazdil <dbrazdil@google.com>
Thu, 25 Jun 2020 13:14:06 +0000 (14:14 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 16 Sep 2020 09:15:01 +0000 (05:15 -0400)
commite2279aacaf3980d4953774bdb84452a2d5765f9d
treeb4818ceb9c631319bf76f8c00187f72e5c92a808
parent8014f8222635a22447cd3a7e176df470d186ede2
KVM: arm64: Fix symbol dependency in __hyp_call_panic_nvhe

BugLink: https://bugs.launchpad.net/bugs/1895174
[ Upstream commit b38b298aa4397e2dc74a89b4dd3eac9e59b64c96 ]

__hyp_call_panic_nvhe contains inline assembly which did not declare
its dependency on the __hyp_panic_string symbol.

The static-declared string has previously been kept alive because of a use in
__hyp_call_panic_vhe. Fix this in preparation for separating the source files
between VHE and nVHE when the two users land in two different compilation
units. The static variable otherwise gets dropped when compiling the nVHE
source file, causing an undefined symbol linker error later.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200625131420.71444-2-dbrazdil@google.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
arch/arm64/kvm/hyp/switch.c