summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2020-01-09 09:57:11 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-27 19:59:51 +0100
commitef82eddc0e3179b4529a67ed102fe4f7efba2e65 (patch)
treea10edcdbfd14ad98f51a2192dfe710bdea79379a /virt
parentde9bf4d4cea369355440c5afbbbc7e62302de8fd (diff)
downloadlinux-stable-ef82eddc0e3179b4529a67ed102fe4f7efba2e65.tar.gz
linux-stable-ef82eddc0e3179b4529a67ed102fe4f7efba2e65.tar.bz2
linux-stable-ef82eddc0e3179b4529a67ed102fe4f7efba2e65.zip
KVM: Remove kvm_read_guest_atomic()
Remove kvm_read_guest_atomic() because it's not used anywhere. Signed-off-by: Peter Xu <peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/kvm_main.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index d21cf86176f0..929d7fccf7cd 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -2030,17 +2030,6 @@ static int __kvm_read_guest_atomic(struct kvm_memory_slot *slot, gfn_t gfn,
return 0;
}
-int kvm_read_guest_atomic(struct kvm *kvm, gpa_t gpa, void *data,
- unsigned long len)
-{
- gfn_t gfn = gpa >> PAGE_SHIFT;
- struct kvm_memory_slot *slot = gfn_to_memslot(kvm, gfn);
- int offset = offset_in_page(gpa);
-
- return __kvm_read_guest_atomic(slot, gfn, data, offset, len);
-}
-EXPORT_SYMBOL_GPL(kvm_read_guest_atomic);
-
int kvm_vcpu_read_guest_atomic(struct kvm_vcpu *vcpu, gpa_t gpa,
void *data, unsigned long len)
{