OSDN Git Service

KVM: x86/mmu: Sync roots after MMU load iff load as successful
authorSean Christopherson <seanjc@google.com>
Fri, 5 Mar 2021 01:11:00 +0000 (17:11 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:24 +0000 (04:42 -0400)
commita91f387b4bfedab595a987ad41e75d8839a958bf
tree48c700b243ac931d26c2012b9534b5a20db753f4
parent61a1773e2e01140729f06cd2d2ee9ff83cc1d256
KVM: x86/mmu: Sync roots after MMU load iff load as successful

For clarity, explicitly skip syncing roots if the MMU load failed
instead of relying on the !VALID_PAGE check in kvm_mmu_sync_roots().

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210305011101.3597423-17-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c