diff options
author | Li RongQing <lirongqing@baidu.com> | 2024-05-20 15:08:57 +0300 |
---|---|---|
committer | Sean Christopherson <seanjc@google.com> | 2024-06-04 02:14:11 +0300 |
commit | 9f44286d77ac72a15692c56d0fcbf7d2534e1f1e (patch) | |
tree | e458dfa9a08c84df77ff235c35500212f5bd88da /scripts/generate_rust_analyzer.py | |
parent | f51af34686885059968b87494b11825b57803331 (diff) | |
download | linux-9f44286d77ac72a15692c56d0fcbf7d2534e1f1e.tar.xz |
KVM: SVM: not account memory allocation for per-CPU svm_data
The allocation for the per-CPU save area in svm_cpu_init shouldn't
be accounted, So introduce __snp_safe_alloc_page helper, which has
gfp flag as input, svm_cpu_init calls __snp_safe_alloc_page with
GFP_KERNEL, snp_safe_alloc_page calls __snp_safe_alloc_page with
GFP_KERNEL_ACCOUNT as input
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Link: https://lore.kernel.org/r/20240520120858.13117-3-lirongqing@baidu.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions