KVM: Remove kvm_vcpu_gfn_to_page() and kvm_vcpu_gpa_to_page()
authorSean Christopherson <seanjc@google.com>
Fri, 29 Apr 2022 01:04:13 +0000 (01:04 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 Jun 2022 10:21:34 +0000 (06:21 -0400)
commitb1624f99aa8fedafcabf1b92fa51ed88dde14acb
treef8719ca1c68e3faebf6f33cacd1641a7e895077d
parent6573a6910ce46ece35c1aa4bd38b70884553cd21
KVM: Remove kvm_vcpu_gfn_to_page() and kvm_vcpu_gpa_to_page()

Drop helpers to convert a gfn/gpa to a 'struct page' in the context of a
vCPU.  KVM doesn't require that guests be backed by 'struct page' memory,
thus any use of helpers that assume 'struct page' is bound to be flawed,
as was the case for the recently removed last user in x86's nested VMX.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220429010416.2788472-8-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c