OSDN Git Service

KVM: x86/mmu: Return old SPTE from mmu_spte_clear_track_bits()
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 2 Jul 2021 22:04:51 +0000 (15:04 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 2 Aug 2021 13:36:37 +0000 (09:36 -0400)
commit7fa2a347512ab06ea1558302564879c060d52b0c
tree73fef19a673dc8c5b2e80f11f084163eca998f4a
parent03fffc5493c8c8d850586df5740c985026c313bf
KVM: x86/mmu: Return old SPTE from mmu_spte_clear_track_bits()

Return the old SPTE when clearing a SPTE and push the "old SPTE present"
check to the caller.  Private shadow page support will use the old SPTE
in rmap_remove() to determine whether or not there is a linked private
shadow page.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <b16bac1fd1357aaf39e425aab2177d3f89ee8318.1625186503.git.isaku.yamahata@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c