summaryrefslogtreecommitdiff
path: root/lib/842
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2022-06-28 18:02:28 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-06-29 19:39:58 +1000
commit4dee21e0f2520f5032b0abce0ecae593a71bd19d (patch)
tree9f4f23d07e975c8c836e5b49081f28f674585e96 /lib/842
parentf5c847ea19d323974d6f7c7e9fa4858ce0727096 (diff)
KVM: PPC: Do not warn when userspace asked for too big TCE table
KVM manages emulated TCE tables for guest LIOBNs by a two level table which maps up to 128TiB with 16MB IOMMU pages (enabled in QEMU by default) and MAX_ORDER=11 (the kernel's default). Note that the last level of the table is allocated when actual TCE is updated. However these tables are created via ioctl() on kvmfd and the userspace can trigger WARN_ON_ONCE_GFP(order >= MAX_ORDER, gfp) in mm/page_alloc.c and flood dmesg. This adds __GFP_NOWARN. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220628080228.1508847-1-aik@ozlabs.ru
Diffstat (limited to 'lib/842')
0 files changed, 0 insertions, 0 deletions