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/book3s_pr.c | |
parent | 7ee788556bf395a8ef413bea33494df29a3409e0 (diff) | |
download | lwn-7c973a2ebb8fb9c8ee2ae9647f9ad7b0ad58a3e6.tar.gz lwn-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 'arch/powerpc/kvm/book3s_pr.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_pr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/arch/powerpc/kvm/book3s_pr.c b/arch/powerpc/kvm/book3s_pr.c index 71fa0f1873b3..b3c584f94cb3 100644 --- a/arch/powerpc/kvm/book3s_pr.c +++ b/arch/powerpc/kvm/book3s_pr.c @@ -86,12 +86,16 @@ void kvmppc_core_vcpu_put(struct kvm_vcpu *vcpu) kvmppc_giveup_ext(vcpu, MSR_VSX); } -void kvmppc_core_check_requests(struct kvm_vcpu *vcpu) +int kvmppc_core_check_requests(struct kvm_vcpu *vcpu) { + int r = 1; /* Indicate we want to get back into the guest */ + /* We misuse TLB_FLUSH to indicate that we want to clear all shadow cache entries */ if (kvm_check_request(KVM_REQ_TLB_FLUSH, vcpu)) kvmppc_mmu_pte_flush(vcpu, 0, 0); + + return r; } /************* MMU Notifiers *************/ |