summaryrefslogtreecommitdiffstats
path: root/include/linux/kvm_host.h
diff options
context:
space:
mode:
authorYaowei Bai2015-11-14 04:21:06 +0100
committerPaolo Bonzini2015-11-25 17:24:23 +0100
commit33e941547923283f7f1022f3c35359ea9403d9a4 (patch)
treed1e245cfa1dc1bb0091520c3478188a527096e2c /include/linux/kvm_host.h
parentKVM-async_pf: Delete an unnecessary check before the function call "kmem_cach... (diff)
downloadkernel-qcow2-linux-33e941547923283f7f1022f3c35359ea9403d9a4.tar.gz
kernel-qcow2-linux-33e941547923283f7f1022f3c35359ea9403d9a4.tar.xz
kernel-qcow2-linux-33e941547923283f7f1022f3c35359ea9403d9a4.zip
KVM: kvm_is_visible_gfn can be boolean
This patch makes kvm_is_visible_gfn return bool due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai <baiyaowei@cmss.chinamobile.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r--include/linux/kvm_host.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h
index 14f95969b0f3..29119193a19f 100644
--- a/include/linux/kvm_host.h
+++ b/include/linux/kvm_host.h
@@ -641,7 +641,7 @@ int kvm_gfn_to_hva_cache_init(struct kvm *kvm, struct gfn_to_hva_cache *ghc,
int kvm_clear_guest_page(struct kvm *kvm, gfn_t gfn, int offset, int len);
int kvm_clear_guest(struct kvm *kvm, gpa_t gpa, unsigned long len);
struct kvm_memory_slot *gfn_to_memslot(struct kvm *kvm, gfn_t gfn);
-int kvm_is_visible_gfn(struct kvm *kvm, gfn_t gfn);
+bool kvm_is_visible_gfn(struct kvm *kvm, gfn_t gfn);
unsigned long kvm_host_page_size(struct kvm *kvm, gfn_t gfn);
void mark_page_dirty(struct kvm *kvm, gfn_t gfn);