aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 3416f8a31f63..6425906d7cec 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -984,12 +984,6 @@ static bool memslot_is_readonly(struct kvm_memory_slot *slot)
984 return slot->flags & KVM_MEM_READONLY; 984 return slot->flags & KVM_MEM_READONLY;
985} 985}
986 986
987static unsigned long __gfn_to_hva_memslot(struct kvm_memory_slot *slot,
988 gfn_t gfn)
989{
990 return slot->userspace_addr + (gfn - slot->base_gfn) * PAGE_SIZE;
991}
992
993static unsigned long __gfn_to_hva_many(struct kvm_memory_slot *slot, gfn_t gfn, 987static unsigned long __gfn_to_hva_many(struct kvm_memory_slot *slot, gfn_t gfn,
994 gfn_t *nr_pages, bool write) 988 gfn_t *nr_pages, bool write)
995{ 989{