KVM: Drop KVM_ERR_PTR_BAD_PAGE and instead return NULL to indicate an error
authorSean Christopherson <seanjc@google.com>
Thu, 10 Oct 2024 18:23:03 +0000 (11:23 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 25 Oct 2024 16:54:42 +0000 (12:54 -0400)
commit037bc38b298c9a8de64f84b253c0b472228bbb10
treea388f011057358b5c160822465dc6552db2ecff6
parente9001a382fa2c256229adc68d55212028b01d515
KVM: Drop KVM_ERR_PTR_BAD_PAGE and instead return NULL to indicate an error

Remove KVM_ERR_PTR_BAD_PAGE and instead return NULL, as "bad page" is just
a leftover bit of weirdness from days of old when KVM stuffed a "bad" page
into the guest instead of actually handling missing pages.  See commit
cea7bb21280e ("KVM: MMU: Make gfn_to_page() always safe").

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Tested-by: Dmitry Osipenko <dmitry.osipenko@collabora.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-ID: <20241010182427.1434605-2-seanjc@google.com>
arch/powerpc/kvm/book3s_pr.c
arch/powerpc/kvm/book3s_xive_native.c
arch/s390/kvm/vsie.c
arch/x86/kvm/lapic.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c