summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorLongpeng(Mike) <longpeng2@huawei.com>2017-08-08 12:05:35 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2017-08-08 10:57:43 +0200
commitf01fbd2fad73434f62cbd0aada8f9403fc0fa527 (patch)
tree9b2ea43e819cb4c2454220259268b28e07797d6f /virt
parent0546c63d988d347fc734fc8c624692b30f95f633 (diff)
downloadop-kernel-dev-f01fbd2fad73434f62cbd0aada8f9403fc0fa527.zip
op-kernel-dev-f01fbd2fad73434f62cbd0aada8f9403fc0fa527.tar.gz
KVM: arm: implements the kvm_arch_vcpu_in_kernel()
This implements the kvm_arch_vcpu_in_kernel() for ARM, and adjusts the calls to kvm_vcpu_on_spin(). Signed-off-by: Longpeng(Mike) <longpeng2@huawei.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/arm/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c
index 862f820..b9f68e4 100644
--- a/virt/kvm/arm/arm.c
+++ b/virt/kvm/arm/arm.c
@@ -418,7 +418,7 @@ int kvm_arch_vcpu_runnable(struct kvm_vcpu *v)
bool kvm_arch_vcpu_in_kernel(struct kvm_vcpu *vcpu)
{
- return false;
+ return vcpu_mode_priv(vcpu);
}
/* Just ensure a guest exit from a particular CPU */
OpenPOWER on IntegriCloud