]> 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)
commit26577eea086bf7e4a1c0f76ad0acf6ae3f42f58c
treef8719ca1c68e3faebf6f33cacd1641a7e895077d
parentc5f6b313287212d431e92ea07731fba257161183
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