diff options
author | Paul Mackerras <paulus@ozlabs.org> | 2018-09-11 17:00:30 +1000 |
---|---|---|
committer | root <root@rcs-power9-talos> | 2018-10-27 02:51:26 -0400 |
commit | 9d8bed4d5db2e83b862d4c750e51dab3ce6d6bfc (patch) | |
tree | 9562002702c2c1edcd9f0d0c44289c41e92e4eb8 /drivers/phy/phy-qcom-ufs-qmp-14nm.h | |
parent | f531b4c031ad6f366fa74aa8bfbc0ee69a21543c (diff) | |
download | op-kernel-dev-9d8bed4d5db2e83b862d4c750e51dab3ce6d6bfc.zip op-kernel-dev-9d8bed4d5db2e83b862d4c750e51dab3ce6d6bfc.tar.gz |
KVM: PPC: Book3S HV: Allocate a memory area exclusively for HPTs
Currently we allocate HPTs (hashed page tables) for guests using the
CMA (contiguous memory allocator) facility. However, there are
situations where the CMA region can get fragmented, notably when
lots of guest pages get pinned for PCI pass-through, which then causes
HPT allocations to fail even if there is sufficient CMA memory
available overall.
This commit adds the capability to reserve some memory at boot time
exclusively for HPTs for KVM guests. The amount is controlled with
the kvm_hpt_resv_ratio=N kernel command-line option, where N is the
percentage of system memory to reserve. This reserved memory will
be used first, and only when a guest HPT can't be allocated from this
reserved memory will the CMA region be used.
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'drivers/phy/phy-qcom-ufs-qmp-14nm.h')
0 files changed, 0 insertions, 0 deletions