]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf000e43049f76282ec0faa01e6f4049d816e182d
treef8719ca1c68e3faebf6f33cacd1641a7e895077d
parenta33dbe2a72ceb90214fee75cb774702200e57ba3
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