[PW_SID:1128564] RISC-V: KVM: Account VM-scoped allocations to the VM cgroup#2295
[PW_SID:1128564] RISC-V: KVM: Account VM-scoped allocations to the VM cgroup#2295linux-riscv-bot wants to merge 2 commits into
Conversation
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> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
|
Patch 1: "RISC-V: KVM: Account VM-scoped allocations to the VM cgroup" |
8ca72ef to
60e0882
Compare
PR for series 1128564 applied to workflow__riscv__fixes
Name: RISC-V: KVM: Account VM-scoped allocations to the VM cgroup
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1128564
Version: 1