KVM: Add kvm_arch_vcpu_{un}blocking callbacks
authorChristoffer Dall <christoffer.dall@linaro.org>
Thu, 27 Aug 2015 14:41:15 +0000 (16:41 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 22 Oct 2015 21:01:41 +0000 (23:01 +0200)
commit3217f7c25bca66eed9b07f0b8bfd1937169b0736
tree560fff562044ed7bed3f3ee0e1d1ce91e708d180
parent0d997491f814c87310a6ad7be30a9049c7150489
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>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_host.h
arch/mips/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_host.h
arch/s390/include/asm/kvm_host.h
arch/x86/include/asm/kvm_host.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c