aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorIzik Eidus <izike@qumranet.com>2007-10-24 17:52:57 -0400
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:52:56 -0500
commit210c7c4d7f200f00ec34960a8c96bb990cbd266d (patch)
treefa6b1b15d4b3db3a55c42ec991ad413278a7654a /drivers/kvm/kvm.h
parent80b14b5b32cb0a98234283daf9b5a6643e1a1ef3 (diff)
KVM: Export memory slot allocation mechanism
Remove kvm memory slot allocation mechanism from the ioctl and put it to exported function. Signed-off-by: Izik Eidus <izike@qumranet.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 12de42c789a2..f3dda088e34b 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -513,6 +513,9 @@ struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva);
513extern struct page *bad_page; 513extern struct page *bad_page;
514 514
515int is_error_page(struct page *page); 515int is_error_page(struct page *page);
516int kvm_set_memory_region(struct kvm *kvm,
517 struct kvm_userspace_memory_region *mem,
518 int user_alloc);
516gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); 519gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn);
517struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); 520struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn);
518void kvm_release_page(struct page *page); 521void kvm_release_page(struct page *page);