aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>2010-04-16 05:19:48 -0400
committerAvi Kivity <avi@redhat.com>2010-05-17 05:18:10 -0400
commit2a059bf444dd7758ccf48f217cd981570132be85 (patch)
treedb0b01ed15d38a36e581156b4dd1394d7a4962c9 /arch/x86
parentb2fc15a5ef6679a5f87fee012a836294532bc628 (diff)
KVM: Get rid of dead function gva_to_page()
Nobody use gva_to_page() anymore, get rid of it. Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/mmu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 7eff794457f3..d2a110e870fa 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1618,20 +1618,6 @@ static void mmu_convert_notrap(struct kvm_mmu_page *sp)
1618 } 1618 }
1619} 1619}
1620 1620
1621struct page *gva_to_page(struct kvm_vcpu *vcpu, gva_t gva)
1622{
1623 struct page *page;
1624
1625 gpa_t gpa = kvm_mmu_gva_to_gpa_read(vcpu, gva, NULL);
1626
1627 if (gpa == UNMAPPED_GVA)
1628 return NULL;
1629
1630 page = gfn_to_page(vcpu->kvm, gpa >> PAGE_SHIFT);
1631
1632 return page;
1633}
1634
1635/* 1621/*
1636 * The function is based on mtrr_type_lookup() in 1622 * The function is based on mtrr_type_lookup() in
1637 * arch/x86/kernel/cpu/mtrr/generic.c 1623 * arch/x86/kernel/cpu/mtrr/generic.c