diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-11-20 03:25:04 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 10:53:09 -0500 |
commit | 0de10343b3ca7aa34dd606145748f73ed19f627e (patch) | |
tree | c15dd64e027ce58784ec8296bd7687591d08997e /drivers/kvm/kvm.h | |
parent | 3ad82a7e874c5d6c4045090cc01d7794dd9eb21c (diff) |
KVM: Portability: Split kvm_set_memory_region() to have an arch callout
Moving !user_alloc case to kvm_arch to avoid unnecessary
code logic in non-x86 platform.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index c2acd74389fa..49094a221f6a 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -391,6 +391,10 @@ int kvm_set_memory_region(struct kvm *kvm, | |||
391 | int __kvm_set_memory_region(struct kvm *kvm, | 391 | int __kvm_set_memory_region(struct kvm *kvm, |
392 | struct kvm_userspace_memory_region *mem, | 392 | struct kvm_userspace_memory_region *mem, |
393 | int user_alloc); | 393 | int user_alloc); |
394 | int kvm_arch_set_memory_region(struct kvm *kvm, | ||
395 | struct kvm_userspace_memory_region *mem, | ||
396 | struct kvm_memory_slot old, | ||
397 | int user_alloc); | ||
394 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); | 398 | gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn); |
395 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); | 399 | struct page *gfn_to_page(struct kvm *kvm, gfn_t gfn); |
396 | void kvm_release_page_clean(struct page *page); | 400 | void kvm_release_page_clean(struct page *page); |