diff options
author | Oliver Upton <[email protected]> | 2023-02-06 23:52:29 +0000 |
---|---|---|
committer | Oliver Upton <[email protected]> | 2023-02-07 13:56:18 +0000 |
commit | 5f623a598d128dacadf95c9d14f7c8b1313a3dc4 (patch) | |
tree | 83304ccc4bedf9b3379247a3164df00631b7aad2 /arch/arm64/kvm/reset.c | |
parent | 7af0c2534f4c57b16e92dfca8c5f40fa90fbb3f3 (diff) |
KVM: arm64: Mark some VM-scoped allocations as __GFP_ACCOUNT
Generally speaking, any memory allocations that can be associated with a
particular VM should be charged to the cgroup of its process.
Nonetheless, there are a couple spots in KVM/arm64 that aren't currently
accounted:
- the ccsidr array containing the virtualized cache hierarchy
- the cpumask of supported cpus, for use of the vPMU on heterogeneous
systems
Go ahead and set __GFP_ACCOUNT for these allocations.
Reviewed-by: Marc Zyngier <[email protected]>
Reviewed-by: Akihiko Odaki <[email protected]>
Reviewed-by: Gavin Shan <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Oliver Upton <[email protected]>
Diffstat (limited to 'arch/arm64/kvm/reset.c')
0 files changed, 0 insertions, 0 deletions