diff options
author | Alexander Graf <agraf@suse.de> | 2012-08-13 12:50:35 +0200 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2012-10-05 23:38:46 +0200 |
commit | 7c973a2ebb8fb9c8ee2ae9647f9ad7b0ad58a3e6 (patch) | |
tree | 5f0cad2d7d52f7b9b77ae64e5f3b46c778970ed0 /arch/powerpc/kvm/powerpc.c | |
parent | KVM: PPC: Add return value in prepare_to_enter (diff) | |
download | linux-7c973a2ebb8fb9c8ee2ae9647f9ad7b0ad58a3e6.tar.xz linux-7c973a2ebb8fb9c8ee2ae9647f9ad7b0ad58a3e6.zip |
KVM: PPC: Add return value to core_check_requests
Requests may want to tell us that we need to go back into host state,
so add a return value for the checks.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to '')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 0e2a98ab6a77..54b12af577d0 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -83,9 +83,11 @@ int kvmppc_prepare_to_enter(struct kvm_vcpu *vcpu) /* Make sure we process requests preemptable */ local_irq_enable(); trace_kvm_check_requests(vcpu); - kvmppc_core_check_requests(vcpu); + r = kvmppc_core_check_requests(vcpu); local_irq_disable(); - continue; + if (r > 0) + continue; + break; } if (kvmppc_core_prepare_to_enter(vcpu)) { |