diff options
| author | Yuhang.chen <yhchen312@gmail.com> | 2026-07-16 14:41:12 +0800 |
|---|---|---|
| committer | Anup Patel <anup@brainfault.org> | 2026-08-01 14:14:06 +0530 |
| commit | b7a4bd0c80656dae7f0a7a9c9be4fdf6f58d29ab (patch) | |
| tree | 3bb98fd1de5b04a2fb61dca4c454ae03d1e0f9cc /include/linux/workqueue_api.h | |
| parent | ed64ae4e44abc2e7d92cf25be94f008a25aab0a2 (diff) | |
RISC-V: KVM: Account VM-scoped allocations to the VM cgroup
Charge the per-VM and per-vCPU allocations (stage-2 PGD, APLIC state,
IMSIC context, vector context, FWFT config, PMU snapshot) to the
allocating process's memory cgroup via GFP_KERNEL_ACCOUNT / __GFP_ACCOUNT.
Per-CPU module-init allocations and transient scratch buffers are left
unaccounted.
Measured results (KVM guest run in a memory cgroup; VM cgroup
memory.current after guest boot):
VM cgroup memory.current 1044480 bytes
Assisted-by: YuanSheng:deepseek-v4-pro
Co-developed-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Quan Zhou <zhouquan@iscas.ac.cn>
Signed-off-by: Yuhang.chen <yhchen312@gmail.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20260716064112.2387938-1-yhchen312@gmail.com
Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'include/linux/workqueue_api.h')
0 files changed, 0 insertions, 0 deletions
