On Fri, Mar 11, 2022 at 12:25:11AM +0000, David Matlack wrote: > Move the code that allocates a new shadow page for splitting huge pages > into mmu.c. Currently this code is only used by the TDP MMU but it will > be reused in subsequent commits to also split huge pages mapped by the > shadow MMU. > > While here, also shove the GFP complexity down into the allocation > function so that it does not have to be duplicated when the shadow MMU > needs to start allocating SPs for splitting. > > No functional change intended. > > Signed-off-by: David Matlack <dmatlack@xxxxxxxxxx> Reviewed-by: Peter Xu <peterx@xxxxxxxxxx> -- Peter Xu