KVM: x86/mmu: Separate TDP MMU shadow page allocation and initialization
authorDavid Matlack <dmatlack@google.com>
Wed, 19 Jan 2022 23:07:35 +0000 (23:07 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 10 Feb 2022 18:50:41 +0000 (13:50 -0500)
commita82070b6e71a6642f87ef9e483ddc062c3571678
treee53002d3fcce98c92802661c5366b9842fb1b647
parenta3aca4de0da99699c5b94fc3fc4e1817e756edd1
KVM: x86/mmu: Separate TDP MMU shadow page allocation and initialization

Separate the allocation of shadow pages from their initialization.  This
is in preparation for splitting huge pages outside of the vCPU fault
context, which requires a different allocation mechanism.

No functional changed intended.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220119230739.2234394-15-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/tdp_mmu.c