aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm64/kvm/debug.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2019-01-05 15:49:50 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-19 21:05:24 +0000
commit7aa8d14641651a61a0b8892314a0bcfaceebe158 (patch)
tree44c443a7129044ef782db30b345cdc1d2b440f57 /arch/arm64/kvm/debug.c
parentclocksource/arm_arch_timer: Store physical timer IRQ number for KVM on VHE (diff)
downloadlinux-dev-7aa8d14641651a61a0b8892314a0bcfaceebe158.tar.xz
linux-dev-7aa8d14641651a61a0b8892314a0bcfaceebe158.zip
arm/arm64: KVM: Introduce kvm_call_hyp_ret()
Until now, we haven't differentiated between HYP calls that have a return value and those who don't. As we're about to change this, introduce kvm_call_hyp_ret(), and change all call sites that actually make use of a return value. Signed-off-by: Marc Zyngier <marc.zyngier@arm.com> Acked-by: Christoffer Dall <christoffer.dall@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
Diffstat (limited to 'arch/arm64/kvm/debug.c')
-rw-r--r--arch/arm64/kvm/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/debug.c b/arch/arm64/kvm/debug.c
index f39801e4136c..fd917d6d12af 100644
--- a/arch/arm64/kvm/debug.c
+++ b/arch/arm64/kvm/debug.c
@@ -76,7 +76,7 @@ static void restore_guest_debug_regs(struct kvm_vcpu *vcpu)
void kvm_arm_init_debug(void)
{
- __this_cpu_write(mdcr_el2, kvm_call_hyp(__kvm_get_mdcr_el2));
+ __this_cpu_write(mdcr_el2, kvm_call_hyp_ret(__kvm_get_mdcr_el2));
}
/**