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>
This commit is contained in:
Alexander Graf
2012-08-13 12:50:35 +02:00
parent 7ee788556b
commit 7c973a2ebb
4 changed files with 15 additions and 5 deletions

View File

@@ -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)) {