diff options
author | Marc Zyngier <maz@kernel.org> | 2021-10-17 13:29:36 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-10-17 13:29:36 +0300 |
commit | 5f8b2591decb8920ba907373aee3aa48e7cc0d78 (patch) | |
tree | e309e5055f620da41288fb34265979abdf249d7f /arch/arm64/kvm/vgic/vgic-mmio-v3.c | |
parent | 551a13346e590b8521f025fcd4a3094d561214a7 (diff) | |
parent | 115bae923ac8bb29ee635e0ed6b4d5a3eec9371e (diff) | |
download | linux-5f8b2591decb8920ba907373aee3aa48e7cc0d78.tar.xz |
Merge branch kvm-arm64/memory-accounting into kvmarm-master/next
* kvm-arm64/memory-accounting:
: .
: Sprinkle a bunch of GFP_KERNEL_ACCOUNT all over the code base
: to better track memory allocation made on behalf of a VM.
: .
KVM: arm64: Add memcg accounting to KVM allocations
KVM: arm64: vgic: Add memcg accounting to vgic allocations
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/vgic/vgic-mmio-v3.c')
-rw-r--r-- | arch/arm64/kvm/vgic/vgic-mmio-v3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/vgic/vgic-mmio-v3.c b/arch/arm64/kvm/vgic/vgic-mmio-v3.c index a9642fc71fdf..bf7ec4a78497 100644 --- a/arch/arm64/kvm/vgic/vgic-mmio-v3.c +++ b/arch/arm64/kvm/vgic/vgic-mmio-v3.c @@ -836,7 +836,7 @@ static int vgic_v3_alloc_redist_region(struct kvm *kvm, uint32_t index, if (vgic_v3_rdist_overlap(kvm, base, size)) return -EINVAL; - rdreg = kzalloc(sizeof(*rdreg), GFP_KERNEL); + rdreg = kzalloc(sizeof(*rdreg), GFP_KERNEL_ACCOUNT); if (!rdreg) return -ENOMEM; |