diff options
author | Zhang Xiantao <xiantao.zhang@intel.com> | 2007-11-22 11:20:33 +0800 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-01-30 17:53:14 +0200 |
commit | e9f85cde99fa011db256f6683ba81d155e0d3f57 (patch) | |
tree | 778409f784f030687166c660c2dd9425d032ec1f /drivers/kvm/kvm_main.c | |
parent | 83ff3b9d4a0ade8f8eb9757fd4b36c501ba161e4 (diff) | |
download | op-kernel-dev-e9f85cde99fa011db256f6683ba81d155e0d3f57.zip op-kernel-dev-e9f85cde99fa011db256f6683ba81d155e0d3f57.tar.gz |
KVM: Portability: Move unalias_gfn to arch dependent file
Non-x86 archs don't need this mechanism. Move it to arch, and
keep its interface in common.
Signed-off-by: Zhang Xiantao <xiantao.zhang@intel.com>
Acked-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 0efd759..721e660 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c @@ -408,20 +408,6 @@ int kvm_is_error_hva(unsigned long addr) } EXPORT_SYMBOL_GPL(kvm_is_error_hva); -gfn_t unalias_gfn(struct kvm *kvm, gfn_t gfn) -{ - int i; - struct kvm_mem_alias *alias; - - for (i = 0; i < kvm->naliases; ++i) { - alias = &kvm->aliases[i]; - if (gfn >= alias->base_gfn - && gfn < alias->base_gfn + alias->npages) - return alias->target_gfn + gfn - alias->base_gfn; - } - return gfn; -} - static struct kvm_memory_slot *__gfn_to_memslot(struct kvm *kvm, gfn_t gfn) { int i; |