]> git.baikalelectronics.ru Git - 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 Bonzini <pbonzini@redhat.com>
Wed, 2 Mar 2022 15:55:58 +0000 (10:55 -0500)
commit9156c92729ba7e720f64e16d62d313fec6fe8eb3
tree2c0aab27010170b61be15ceddf408fdf7b6d3ec2
parent91f7112b28460e614e9b736430257e83c9fc85a4
KVM: x86/mmu: Passing up the error state of mmu_alloc_shadow_roots()

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: b181e1ba766a ("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>
arch/x86/kvm/mmu/mmu.c