]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
KVM: x86/mmu: Passing up the error state of mmu_alloc_shadow_roots()
authorLike Xu <likexu@tencent.com>
Tue, 1 Mar 2022 12:49:41 +0000 (20:49 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:59 +0000 (15:17 +0100)
commite15aa6c2169631c295139938f497ef9670aeab81
tree486f6e765772f4bf4bd4200b5c7c6bc3a97cde35
parentf529b1bf33c9154461f710e1ac920522d48bdeb8
KVM: x86/mmu: Passing up the error state of mmu_alloc_shadow_roots()

BugLink: https://bugs.launchpad.net/bugs/1964361
commit c6c937d673aaa1d603f62f134e1ca9c173eeeed3 upstream.

Just like on the optional mmu_alloc_direct_roots() path, once shadow
path reaches "r = -EIO" somewhere, the caller needs to know the actual
state in order to enter error handling and avoid something worse.

Fixes: 4a38162ee9f1 ("KVM: MMU: load PDPTRs outside mmu_lock")
Signed-off-by: Like Xu <likexu@tencent.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220301124941.48412-1-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
arch/x86/kvm/mmu/mmu.c