History

KVM: X86: Use GFP_KERNEL_ACCOUNT for pid_table in ipiv

The pid_table of ipiv is the persistent memory allocated by per-vcpu, which should be counted into the memory cgroup.

Peng Hao committed 3 years ago

Commit fd1815e1 parent bf672721 file · +2 −1Browse files

Unified · Split

arch/x86/kvm/vmx/vmx.c+2−1
@@ -4651,7 +4651,8 @@ static int vmx_alloc_ipiv_pid_table(struct kvm *kvm) · 4650 unmodified lines
46514651 if (kvm_vmx->pid_table)
46524652 return 0;
46534653
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));
46554656 if (!pages)
46564657 return -ENOMEM;
46574658

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t