mbox series

[v3,0/3] KVM: SVM: refine snp_safe_alloc_page() implementation

Message ID 20240520120858.13117-1-lirongqing@baidu.com (mailing list archive)
Headers show
Series KVM: SVM: refine snp_safe_alloc_page() implementation | expand

Message

Li RongQing May 20, 2024, 12:08 p.m. UTC
This series include three changes for snp_safe_alloc_page:
1. remove useless input parameter
2. not account memory allocation for per-CPU svm_data
3. Consider NUMA affinity when allocating per-CPU save_area

Diff V3: rebase
Diff V2: remove useless input parameter and not account per-CPU svm_data

Li RongQing (3):
  KVM: SVM: remove useless input parameter in snp_safe_alloc_page
  KVM: SVM: not account memory allocation for per-CPU svm_data
  KVM: SVM: Consider NUMA affinity when allocating per-CPU save_area

 arch/x86/kvm/svm/nested.c |  2 +-
 arch/x86/kvm/svm/sev.c    |  6 +++---
 arch/x86/kvm/svm/svm.c    |  8 ++++----
 arch/x86/kvm/svm/svm.h    | 18 +++++++++++++++---
 4 files changed, 23 insertions(+), 11 deletions(-)

Comments

Sean Christopherson June 4, 2024, 11:29 p.m. UTC | #1
On Mon, 20 May 2024 20:08:55 +0800, Li RongQing wrote:
> This series include three changes for snp_safe_alloc_page:
> 1. remove useless input parameter
> 2. not account memory allocation for per-CPU svm_data
> 3. Consider NUMA affinity when allocating per-CPU save_area
> 
> Diff V3: rebase
> Diff V2: remove useless input parameter and not account per-CPU svm_data
> 
> [...]

Applied to kvm-x86 svm, thanks!

[1/3] KVM: SVM: remove useless input parameter in snp_safe_alloc_page
      https://github.com/kvm-x86/linux/commit/f51af3468688
[2/3] KVM: SVM: not account memory allocation for per-CPU svm_data
      https://github.com/kvm-x86/linux/commit/9f44286d77ac
[3/3] KVM: SVM: Consider NUMA affinity when allocating per-CPU save_area
      https://github.com/kvm-x86/linux/commit/99a49093ce92

--
https://github.com/kvm-x86/linux/tree/next