summaryrefslogtreecommitdiff
path: root/arch/m32r
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2016-12-20 08:49:02 +0300
committerPaul Mackerras <paulus@ozlabs.org>2017-01-31 13:59:39 +0300
commitaae0777f1e8224b4fbb78b2c692060852ee750c8 (patch)
tree0aad36c94d7c947834140ea10b42a568510eb190 /arch/m32r
parent3d089f84c6f9b7b0eda993142d73961a44b553d2 (diff)
downloadlinux-aae0777f1e8224b4fbb78b2c692060852ee750c8.tar.xz
KVM: PPC: Book3S HV: Split HPT allocation from activation
Currently, kvmppc_alloc_hpt() both allocates a new hashed page table (HPT) and sets it up as the active page table for a VM. For the upcoming HPT resize implementation we're going to want to allocate HPTs separately from activating them. So, split the allocation itself out into kvmppc_allocate_hpt() and perform the activation with a new kvmppc_set_hpt() function. Likewise we split kvmppc_free_hpt(), which just frees the HPT, from kvmppc_release_hpt() which unsets it as an active HPT, then frees it. We also move the logic to fall back to smaller HPT sizes if the first try fails into the single caller which used that behaviour, kvmppc_hv_setup_htab_rma(). This introduces a slight semantic change, in that previously if the initial attempt at CMA allocation failed, we would fall back to attempting smaller sizes with the page allocator. Now, we try first CMA, then the page allocator at each size. As far as I can tell this change should be harmless. To match, we make kvmppc_free_hpt() just free the actual HPT itself. The call to kvmppc_free_lpid() that was there, we move to the single caller. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/m32r')
0 files changed, 0 insertions, 0 deletions