KVM: x86/mmu: Factor out handling of removed page tables
authorBen Gardon <bgardon@google.com>
Tue, 2 Feb 2021 18:57:11 +0000 (10:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 4 Feb 2021 10:27:39 +0000 (05:27 -0500)
commita066e61f13cf4b17d043ad8bea0cdde2b1e5ee49
treedd9872d5d36a47cc9a1d4626c4b109156532a469
parent734e45b329d626d2c14e2bcf8be3d069a33c3316
KVM: x86/mmu: Factor out handling of removed page tables

Factor out the code to handle a disconnected subtree of the TDP paging
structure from the code to handle the change to an individual SPTE.
Future commits will build on this to allow asynchronous page freeing.

No functional change intended.

Reviewed-by: Peter Feiner <pfeiner@google.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20210202185734.1680553-6-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c