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>
This commit is contained in:
Longpeng(Mike)
2017-08-08 12:05:35 +08:00
committed by Paolo Bonzini
parent 0546c63d98
commit f01fbd2fad
3 changed files with 3 additions and 3 deletions

View File

@@ -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 */