Message ID | CANM98qK3Qk4_AyJiRx0-Y=rubS0mfyAAETbxQ5jLQrVzy_We9w@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/kvm/mmu.c b/arch/arm/kvm/mmu.c index 3df4fa8..9b23230 100644 --- a/arch/arm/kvm/mmu.c +++ b/arch/arm/kvm/mmu.c @@ -754,11 +754,14 @@ int kvm_handle_guest_abort(struct kvm_vcpu *vcpu, struct kvm_run *run) return ret ? ret : 1; } -static bool hva_to_gpa(struct kvm *kvm, unsigned long hva, gpa_t *gpa) +static int handle_hva_to_gpa(struct kvm *kvm, unsigned long hva, + void (*handler)(struct kvm *kvm, unsigned long hva, + gpa_t gpa, void *data), + void *data) { struct kvm_memslots *slots; struct kvm_memory_slot *memslot; - bool found = false; + int cnt = 0; slots = kvm_memslots(kvm);