linux/arch
Shakeel Butt 93bb59ca5e mm, kvm: account kvm_vcpu_mmap to kmemcg
A VCPU of a VM can allocate couple of pages which can be mmap'ed by the
user space application. At the moment this memory is not charged to the
memcg of the VMM. On a large machine running large number of VMs or
small number of VMs having large number of VCPUs, this unaccounted
memory can be very significant. So, charge this memory to the memcg of
the VMM. Please note that lifetime of these allocations corresponds to
the lifetime of the VMM.

Link: https://lkml.kernel.org/r/20201106202923.2087414-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Roman Gushchin <guro@fb.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-12-19 11:18:37 -08:00
..
alpha tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
arc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
arm ARM: SoC updates for OMAP GenPD 2020-12-16 16:53:54 -08:00
arm64 ARM: device tree updates for 5.11 2020-12-16 16:27:35 -08:00
c6x tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
csky Tracing updates for 5.11 2020-12-17 13:22:17 -08:00
h8300 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
hexagon tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
ia64 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
m68k tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
microblaze Microblaze patches for 5.11-rc1 2020-12-16 12:04:39 -08:00
mips tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
nds32 Tracing updates for 5.11 2020-12-17 13:22:17 -08:00
nios2 tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
openrisc OpenRISC updates for 5.11 2020-12-17 13:41:27 -08:00
parisc Tracing updates for 5.11 2020-12-17 13:22:17 -08:00
powerpc powerpc updates for 5.11 2020-12-17 13:34:25 -08:00
riscv tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
s390 Tracing updates for 5.11 2020-12-17 13:22:17 -08:00
sh ARM: SoC drivers for v5.11 2020-12-16 16:38:41 -08:00
sparc tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
um This pull request contains the following changes for UML: 2020-12-17 17:56:44 -08:00
x86 mm, kvm: account kvm_vcpu_mmap to kmemcg 2020-12-19 11:18:37 -08:00
xtensa tif-task_work.arch-2020-12-14 2020-12-16 12:33:35 -08:00
.gitignore
Kconfig Tracing updates for 5.11 2020-12-17 13:22:17 -08:00