The pid_table of ipiv is the persistent memory allocated by per-vcpu, which should be counted into the memory cgroup.
Unified · Split
| @@ -4651,7 +4651,8 @@ static int vmx_alloc_ipiv_pid_table(struct kvm *kvm) · 4650 unmodified lines | |||
| 4651 | if (kvm_vmx->pid_table) | 4651 | if (kvm_vmx->pid_table) |
| 4652 | return 0; | 4652 | return 0; |
| 4653 | 4653 | ||
| 4654 | pages = alloc_pages(GFP_KERNEL | __GFP_ZERO, vmx_get_pid_table_order(kvm)); | 4654 | pages = alloc_pages(GFP_KERNEL_ACCOUNT | __GFP_ZERO, |
| 4655 | vmx_get_pid_table_order(kvm)); | ||
| 4655 | if (!pages) | 4656 | if (!pages) |
| 4656 | return -ENOMEM; | 4657 | return -ENOMEM; |
| 4657 | 4658 | ||