Skip to content

Rework of msrpm optimization and additional fixes for nested svm

Joerg Roedel kvm lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 1 replyApplied
  2. v15 patches 17 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7KVM: SVM: Return correct values in nested_svm_exit_handled_msrarch/x86/kvm/svm.c+5 -50 replies
2/7KVM: SVM: Move msrpm offset calculation to seperate functionarch/x86/kvm/svm.c+37 -160 replies
3/7KVM: SVM: Introduce direct access msr listarch/x86/kvm/svm.c+46 -100 replies
4/7KVM: SVM: Optimize nested svm msrpm mergingarch/x86/kvm/svm.c+71 -90 replies
5/7KVM: SVM: Use svm_msrpm_offset in nested_svm_exit_handled_msrarch/x86/kvm/svm.c+17 -300 replies
6/7KVM; SVM: Add correct handling of nested iopmarch/x86/kvm/svm.c+25 -00 replies
7/7KVM: SVM: Ignore lower 12 bit of nested msrpm_paarch/x86/kvm/svm.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH 0/7 v3] Rework of msrpm optimization and additional fixes for nested svm

Hi,

this is the third round of the msrpm merge optimization patches for nested svm. The change to the previous post it the introduction of an direc_access_msrs list which contains all msrs that a guest might directly access. This list is used to initialize the msrpm bitmaps and the msrpm_offset table used for merging two tables. This optimization more than doubles the performance of kernel compiles in the nested guest using nested-shadow paging.
The other random fixes in this set were not changed to the last version of this set. Patch 1/7 is new because it was forgotten in the last post.

Thanks,

Joerg

Diffstat:

 arch/x86/kvm/svm.c |  259 +++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 195 insertions(+), 64 deletions(-)

Shortlog:

Joerg Roedel (7):
KVM: SVM: Return correct values in nested_svm_exit_handled_msr
KVM: SVM: Move msrpm offset calculation to seperate function
KVM: SVM: Introduce direct access msr list
KVM: SVM: Optimize nested svm msrpm merging
KVM: SVM: Use svm_msrpm_offset in nested_svm_exit_handled_msr KVM; SVM: Add correct handling of nested iopm
KVM: SVM: Ignore lower 12 bit of nested msrpm_pa