diff options
author | Marc Zyngier <maz@kernel.org> | 2021-10-17 12:29:36 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-10-17 12:29:36 +0200 |
commit | 5f8b2591decb8920ba907373aee3aa48e7cc0d78 (patch) | |
tree | e309e5055f620da41288fb34265979abdf249d7f /arch/arm64/kvm/vgic/vgic-mmio-v3.c | |
parent | Merge branch kvm-arm64/selftest/timer into kvmarm-master/next (diff) | |
parent | KVM: arm64: Add memcg accounting to KVM allocations (diff) | |
download | linux-5f8b2591decb8920ba907373aee3aa48e7cc0d78.tar.xz linux-5f8b2591decb8920ba907373aee3aa48e7cc0d78.zip |
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; |