[PATCH v2 05/17] KVM: x86/mmu: Allocate pae_root and lm_root pages in dedicated helper

2021-03-04 Thread Sean Christopherson
Move the on-demand allocation of the pae_root and lm_root pages, used by nested NPT for 32-bit L1s, into a separate helper. This will allow a future patch to hold mmu_lock while allocating the non-special roots so that make_mmu_pages_available() can be checked once at the start of root allocation,

Re: [PATCH v2 05/17] KVM: x86/mmu: Allocate pae_root and lm_root pages in dedicated helper

2021-03-05 Thread Paolo Bonzini
On 05/03/21 02:10, Sean Christopherson wrote: + /* +* This mess only works with 4-level paging and needs to be updated to +* work with 5-level paging. +*/ Planning for this, it's probably a good idea to rename lm_root to pml4_root. Can be done on top. Paolo