KVM: s390: Add memcg accounting to KVM allocations
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 6 Nov 2020 07:34:23 +0000 (08:34 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 10 Dec 2020 12:36:05 +0000 (13:36 +0100)
commitc4196218737137b8e8cf7d0c375765f4f36cb591
tree41038f3be6a4278e54f3d1eb014c887926946016
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
KVM: s390: Add memcg accounting to KVM allocations

Almost all kvm allocations in the s390x KVM code can be attributed to
the process that triggers the allocation (in other words, no global
allocation for other guests). This will help the memcg controller to
make the right decisions.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Acked-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
arch/s390/kvm/guestdbg.c
arch/s390/kvm/intercept.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/priv.c
arch/s390/kvm/pv.c
arch/s390/kvm/vsie.c