summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/asm
diff options
context:
space:
mode:
authorChristoffer Dall2015-08-27 16:41:15 +0200
committerChristoffer Dall2015-10-22 23:01:41 +0200
commit3217f7c25bca66eed9b07f0b8bfd1937169b0736 (patch)
tree560fff562044ed7bed3f3ee0e1d1ce91e708d180 /arch/arm64/include/asm
parentarm/arm64: KVM: Fix disabled distributor operation (diff)
downloadkernel-qcow2-linux-3217f7c25bca66eed9b07f0b8bfd1937169b0736.tar.gz
kernel-qcow2-linux-3217f7c25bca66eed9b07f0b8bfd1937169b0736.tar.xz
kernel-qcow2-linux-3217f7c25bca66eed9b07f0b8bfd1937169b0736.zip
KVM: Add kvm_arch_vcpu_{un}blocking callbacks
Some times it is useful for architecture implementations of KVM to know when the VCPU thread is about to block or when it comes back from blocking (arm/arm64 needs to know this to properly implement timers, for example). Therefore provide a generic architecture callback function in line with what we do elsewhere for KVM generic-arch interactions. Reviewed-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'arch/arm64/include/asm')
-rw-r--r--arch/arm64/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
index ed039688c221..e4f4d65f7d2b 100644
--- a/arch/arm64/include/asm/kvm_host.h
+++ b/arch/arm64/include/asm/kvm_host.h
@@ -255,4 +255,7 @@ void kvm_arm_setup_debug(struct kvm_vcpu *vcpu);
void kvm_arm_clear_debug(struct kvm_vcpu *vcpu);
void kvm_arm_reset_debug_ptr(struct kvm_vcpu *vcpu);
+static inline void kvm_arch_vcpu_blocking(struct kvm_vcpu *vcpu) {}
+static inline void kvm_arch_vcpu_unblocking(struct kvm_vcpu *vcpu) {}
+
#endif /* __ARM64_KVM_HOST_H__ */